(dynamodb): Tags not replicated when creating Table replicas
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
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: Bug Report
Contributor guide
Research direction
Start by reproducing the issue with a CDK DynamoDB Table using replicationRegions and stack-level tags, then trace the Table construct's replica handling. Done means tags are propagated to replication regions or a documented property allows setting replica tags, with tests covering the reported configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100