serverless-step-functions
serverless-step-functions copied to clipboard
Cloudformation resource reference syntax
Could I ask why the syntax !Ref resourceName
does not work here, instead I have to use #{resourceName}
syntax to reference a Cloudformation resource defined in the template?
stepFunctions:
stateMachines:
MyStateMachine:
name: ${env:STACK_NAME}
loggingConfig:
level: ALL
includeExecutionData: true
destinations:
- Fn::GetAtt: [StepFunctionLogGroup, Arn]
definition:
StartAt: First
First:
Type: Task
Resource: arn:aws:states:::ecs:runTask.sync
InputPath: $
Parameters:
Cluster: "#{EcsCluster}"
TaskDefinition: "#{EcsTaskDefinition}"
LaunchType: FARGATE
# [...]
"serverless-step-functions": "^2.29.0"