Skip to content

aws_dynamodb: grant*Data() should include the dynamodb:DescribeTable permission #18773

@jusdino

Description

@jusdino

Description

Table should have a grant* method that grants dynamodb:DescribeTable.

Use Case

I recently encountered a case where I need a lambda to inspect the key schema for the table it is putting items to, but it had AccessDenied when attempting to do so, with the stated error that it was not authorized to perform dynamodb:DescribeTable.

Proposed Solution

I'm thinking it is reasonable to add dynamodb:DescribeTable to the grantReadWriteData() method and I'm happy to work up a pull request to do so. Alternately, I can add a grantDescribeTable() or something along those lines, if that is your preference. I would just start with a pull request but I'm not sure what direction you would prefer me to go, especially since this change would add an action to existing resources - not sure if that counts as breaking or not.

Other information

No response

Acknowledge

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-dynamodbRelated to Amazon DynamoDBeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.feature/enhancementA new API to make things easier or more intuitive. A catch-all for general feature requests.in-progressThis issue is being actively worked on.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions