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

Cannot generate IAM Policy for dynamodb:scan

Open ebisbe opened this issue 1 year ago • 0 comments

This is a Feature Proposal

Description

For bug reports:

  • What went wrong?
Cannot generate IAM policy statement for Task state { Type: 'Task',
  Next: 'Map',
  Parameters:
   { TableName: { Ref: 'flickrTokens' },
     FilterExpression: '#isSubscribed = :isNotSubscribed',
     ExpressionAttributeNames: { '#isSubscribed': 'isSubscribed' },
     ExpressionAttributeValues: { ':isNotSubscribed': { Bool: false } },
     'ExclusiveStartKey.$': '$.LastEvaluatedKey' },
  Resource: 'arn:aws:states:::aws-sdk:dynamodb:scan' }
  • What did you expect should have happened? Generate the proper IAM role

For feature proposals: Add the line to generate the iam role for scan. Not sure why it has not been added. I need it to scan a users table.

I can do the PR myself

ebisbe avatar Sep 06 '23 18:09 ebisbe