From abda7849e117d915070cd4cf6ee08d59e5beecaf Mon Sep 17 00:00:00 2001 From: "Joshua C. Forest" Date: Mon, 20 May 2024 16:38:53 -0400 Subject: [PATCH] You cannot use the short version of the functions in the serverless-step-functions plugin, it's not supported at this time --- serverless-stepf.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/serverless-stepf.yml b/serverless-stepf.yml index d917735..b7b3a4f 100644 --- a/serverless-stepf.yml +++ b/serverless-stepf.yml @@ -6,7 +6,8 @@ rBuilds: States: QueueBuilds: Type: Task - Resource: arn:aws:lambda:#{AWS::Region}:#{AWS::AccountId}:function:${self:service}-${self:provider.stage}-queueBuilds + Resource: + Fn::Sub: arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:service}-${self:provider.stage}-queueBuilds Next: Wait Wait: Type: Wait @@ -14,7 +15,8 @@ rBuilds: Next: JobQueueStatus JobQueueStatus: Type: Task - Resource: arn:aws:lambda:#{AWS::Region}:#{AWS::AccountId}:function:${self:service}-${self:provider.stage}-jobQueueStatus + Resource: + Fn::Sub: arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:service}-${self:provider.stage}-jobQueueStatus Next: QueueEmpty? QueueEmpty?: Type: Choice @@ -27,7 +29,8 @@ rBuilds: Next: Finished Finished: Type: Task - Resource: arn:aws:lambda:#{AWS::Region}:#{AWS::AccountId}:function:${self:service}-${self:provider.stage}-finished + Resource: + Fn::Sub: arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:service}-${self:provider.stage}-finished Next: SuccessOrFail SuccessOrFail: Type: Choice