AWS:不能从SAM部署Stepfunctions云

时间:2019-01-06 06:47:04

标签: amazon-web-services amazon-cloudformation aws-step-functions

当我通过使用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

■错误捕获 enter image description here

0 个答案:

没有答案