当我通过使用SAM部署来部署步进功能时,发生以下错误。 有什么想法为什么会发生。
■template.yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Test Stack
Resources:
TestSFN:
Type: 'AWS::StepFunctions::StateMachine'
Properties:
RoleArn: arn:aws:iam::xxxxxxx:role/service-role/StatesExecutionRole-ap-northeast-1
DefinitionString: |
{
"Comment": "test step function",
"StartAt": "Test",
"States": {
"Test": {
"Type": "Pass",
"End": true
}
}
}
■部署命令
$ sam package --template-file template.yaml --s3-bucket test-sam --output-template-file package.yaml
$ sam deploy --template-file package.yaml --stack-name TestStack --capabilities CAPABILITY_IAM