(dynamodb): Tags not replicated when creating a Global Table
See original GitHub issueWhen 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:
- Created 2 years ago
- Reactions:13
- Comments:9 (5 by maintainers)
Top GitHub Comments
@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.
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.