Connect to DynamoDB table from Fargate Task

Hi,

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: https://github.com/cfn-modules/docs/blob/0d245fbe93a66b40635009bae586f5f799f435ac/examples/msk-cluster/example.yml#L73)

I hope this helps?

Hi @michael,

That helped perfectly. Thanks very much!

Cheers

1 Like

@nickoslester You are welcome!

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