serverless-patterns icon indicating copy to clipboard operation
serverless-patterns copied to clipboard

Template feedback: apigw-sfn

Open ljacobsson opened this issue 5 years ago • 1 comments

  • Inconsistent use of Fn::GetAtt and !GetAtt
  • Make use of the AWS::Serverless::StateMachine transform and move policy from StatesExecutionRole to the Policies array:
StateMachineExpressSync:
   Type: AWS::Serverless::StateMachine # More info about State Machine Resource: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-statemachine.html
   Properties:
     DefinitionUri: statemachine/StateMachine.asl.json
     Policies:
        -  Version: "2012-10-17"
           Statement:
             - Effect: Allow
               Action:
                 - "cloudwatch:*"
                 - "logs:*"
               Resource: "*"
    ...

ljacobsson avatar Apr 01 '21 13:04 ljacobsson

Done, thanks Lars !

benjasl-stripe avatar Apr 01 '21 13:04 benjasl-stripe