Никаких предупреждений cfnRole и ненужных файлов не было создано после развертывания.
Serverless: Safeguards Processing...
Serverless: Safeguards Results:
Summary --------------------------------------------------
passed - no-unsafe-wildcard-iam-permissions
passed - framework-version
warned - require-cfn-role
passed - allowed-runtimes
passed - no-secret-env-vars
passed - allowed-regions
passed - allowed-stages
Details --------------------------------------------------
1) Warned - no cfnRole set
details: http://slss.io/sg-require-cfn-role
Require the cfnRole option, which specifies a particular role for CloudFormation to assume while deploying.
- Я был на сайте, который пишет подробно. детали: http://slss.io/sg-require-cfn-role В любом случае, я не знаю, как это исправить.
- s_hello.py & s_hello2.py всегда генерируется после развертывания. Это мой файл serverless.yaml
service: myapp
app: sample-app
org: xxx
provider:
name: aws
runtime: python3.7
stage: dev
region: us-east-1
package:
individually: true
functions:
hello:
handler: src/handler/handler.hello
hello2:
handler: src/handler2/handler2.hello2
Это всегда происходит, хотя следите за этим сайтом . Моя лямбда-функция создаст "s_xxx.py (где xxx - файл handler.py.