Skip to content

Add dynamodb:DescribeTable to DynamoDBCrudPolicy #509

@sliedig

Description

@sliedig

Description:

Have a template for .NET Core 2.1 function with DynamoDBCrudPolicy.

    ResolveIncidentFunction:
        Type: AWS::Serverless::Function
        Properties:
            Description: DevelopingWithStepFunctions - Marks the  incident as resolved.
            CodeUri: ./artifacts/ResolveIncidentTask.zip
            Handler: ResolveIncidentTask::ResolveIncidentTask.Function::FunctionHandler
            Policies:
            - DynamoDBCrudPolicy:
                TableName: !Ref IncidentsTable

Function raises exception when trying to invoke PutItemAsync operation.

arn:function... is not authorized to perform: dynamodb:DescribeTable on resource: arn:table...

Adding action to new custom policy resolves the issue.

Can we please add to action to the DynamoDBCrudPolicy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions