serverless-step-functions icon indicating copy to clipboard operation
serverless-step-functions copied to clipboard

Cloudformation resource reference syntax

Open spinlud opened this issue 3 years ago • 0 comments

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"

spinlud avatar Apr 16 '21 08:04 spinlud