Connect to DynamoDB table from Fargate Task


I have some lambdas which create entries in dynamodb, and I notice we need to add dependency modules against the lambda to allow them to have permissions to the table:

DependencyModule2: !GetAtt LatestGenTable.Outputs.StackName

How can I achieve this with a fargate task? I am getting an access denied bye default.

Many thanks in advance :slight_smile:

Hi @nickoslester
you need to pass in your own Policy arn via ManagedPolicyArns

Example (not related to fargate but it works the same way:

I hope this helps?

Hi @michael,

That helped perfectly. Thanks very much!


1 Like

@nickoslester You are welcome!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.