question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(dynamodb): Tags not replicated when creating a Global Table

See original GitHub issue

When creating a Global Table in DynamoDB with CDK, tags are not propagated to the replication regions and there is no ability to define tags for those replication regions. As a result, our resources are remediated by internal tools due to missing tags.

Reproduction Steps

When creating a Global Table via CDK, I add the following prop to my Table Construct: replicationRegions: ["us-east-2"]

Additionally, I have tags defined for the whole the stack: new AppStack(app, 'DigitalAccountDynamoStack', { tags: { ['deployment_guid']: process.env.bamboo_forge_deployment_guid as string, }});

I have also tried: Tags.of(app).add('deployment_guid', process.env.bamboo_forge_deployment_guid as string); As well as: Tag.add(appStack, 'deployment_guid', process.env.bamboo_forge_deployment_guid as string);

All result in the same: missing tags.

What did you expect to happen?

Tags from the core region should be replicated to the replication regions or there should be a property to manually set the tags.

What actually happened?

Tags are empty in replication regions.

Environment

  • **CDK CLI Version 😗*1.106.1
  • Framework Version:
  • **Node.js Version:**14.6.0
  • **OS 😗*Mac OS
  • Language (Version): TypeScript

Other


This is 🐛 Bug Report

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:13
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
chrisjgraycommented, Jun 2, 2021

@ccicchitelli, thanks for opening this. I actually just experienced this for the first time today myself. I also tried the workaround @skinny85 suggested, and it didn’t work for me either.

1reaction
ccicchitellicommented, Jun 2, 2021

Thanks @skinny85 ! That did not have any effect for me, I tested both with an existing table and a new test table. I also tried to find a workaround by running a post-deploy CLI command to tag the relication region by ARN, but my organization doesn’t allow that unfortunately.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to tag DynamoDB global table replicas #13725 - GitHub
Currently we're facing the issue where there is no way to add tags to the DynamoDB replicas. I was thinking that either the...
Read more >
Global tables - multi-Region replication for DynamoDB
Global tables provide automatic multi-active replication to AWS Regions worldwide. ... Transactions are not supported across regions in global tables.
Read more >
DynamoDB Global Table replication stream event issues
We are encountering a situation where if we have a table globally replicated but also use the tables stream to process records on...
Read more >
DynamoDB Global Tables - Jayendra's Cloud Certification Blog
DynamoDB cross-region replication allows identical copies (called replicas) of a DynamoDB table (called master table) to be maintained in one or more AWS...
Read more >
serverless-create-global-dynamodb-table-tags - npm package
Configuration · When creating global tables with createStack: false , any update the source table config is not replicated to global tables.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found