serverless-patterns
serverless-patterns copied to clipboard
Template feedback: apigw-sfn
- Inconsistent use of
Fn::GetAttand!GetAtt - Make use of the
AWS::Serverless::StateMachinetransform and move policy fromStatesExecutionRoleto thePoliciesarray:
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: "*"
...
Done, thanks Lars !