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文件。