【发布时间】:2019-09-24 18:51:17
【问题描述】:
通过docker deploy_image后发现:
等待创建变更集..
创建变更集失败:Waiter ChangeSetCreateComplete 失败:Waiter 遇到终端故障状态状态:FAILED。
我的模板有什么问题:
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: 'testimg
Sample SAM Template for testimg
'
Globals:
Function:
Timeout: 60
Api:
BinaryMediaTypes:
- image/png
Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri:
Handler: app.lambda_handler
Runtime: python3.6
Events:
HelloWorld:
Type: Api
Properties:
Path: /hello
Method: post
Outputs:
HelloWorldApi:
Description: API Gateway endpoint URL for Prod stage for Hello World function
Value:
Fn::Sub: https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/
HelloWorldFunction:
Description: Hello World Lambda Function ARN
Value:
Fn::GetAtt:
- HelloWorldFunction
- Arn
HelloWorldFunctionIamRole:
Description: Implicit IAM Role created for Hello World function
Value:
Fn::GetAtt:
- HelloWorldFunctionRole
- Arn
我希望它会在 cloudformation 中创建一个堆栈。
【问题讨论】:
标签: aws-sam