serverless-operations / serverless-step-functions

AWS Step Functions plugin for Serverless Framework ⚡️
Other
1.03k stars 203 forks source link

fix: define proper permissions for index with Ref table #613

Closed ebisbe closed 2 months ago

ebisbe commented 3 months ago

When the "TableName" is a Ref the 'Arn' to use the index is not generated correctly:

arn:aws:dynamodb:eu-west-1:679049160385:table/[object Object]/index/GsiPkState

It should be:

{'Fn::Join': ['/', [{ 'Fn::GetAtt': ['hello', 'Arn'] }, 'index/GSI1']] }
ebisbe commented 2 months ago

@horike37 Can you review this?