【发布时间】:2020-03-04 17:57:57
【问题描述】:
No cfnRole warned and unnecessary files was created after deploy
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
It's always happen although follow this site 。 我的 Lambda 函数将创建“s_xxx.py(其中 xxx 是 handler.py 文件。
【问题讨论】:
标签: python-3.x amazon-web-services aws-lambda amazon-cloudformation serverless