小编SoS*_*dTT的帖子

警告 - 部署后未设置 cfnRole 和创建不必要的文件

部署后没有 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.
Run Code Online (Sandbox Code Playgroud)
  1. 我去过详细写的网站。详情:http : //slss.io/sg-require-cfn-role 反正我不知道怎么解决。
  2. s_hello.py & s_hello2.py 总是在部署后生成。这是我的 serverless.yaml 文件
    service: myapp
    app: sample-app
    org: xxx
    provider:
      name: aws
      runtime: python3.7
    stage: …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services python-3.x aws-cloudformation aws-lambda serverless

4
推荐指数
1
解决办法
1431
查看次数