(dynamodb): Tags not propagated to CfnGlobalTable
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the bug
Tags are not propagated to CfnGlobalTable despite it being a taggable resource
### Expected Behavior
I expect tags to be created on my Global Tables
### Current Behavior
Tags are not created on Global Tables
### Reproduction Steps
Attempt to tag to a CfnGlobalTable
```
const table = new ddb.CfnGlobalTable(this, 'GlobalTable', {
attributeDefinitions: [
{
attributeName: 'id',
attributeType: 'string'
}
],
keySchema: [
{
attributeName: 'name',
keyType: 'HASH'
}
],
replicas: [
{
region: 'us-east-2'
}
]
});
Tags.of(table).add('key', 'value');
```
### Possible Solution
This doesn't work because tags are a second level property of `CfnGlobalTable` - tags are applied per replica https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-replicaspecification.html
### Additional Information/Context
_No response_
### CDK CLI Version
2.78.0
### Framework Version
_No response_
### Node.js Version
.
### OS
.
### Language
Typescript
### Language Version
_No response_
### Other information
_No response_
Contributor guide
Research direction
The issue centers on CfnGlobalTable and its replicas property; start by tracing how Tags.of(table).add is translated for this resource. Compare the CloudFormation ReplicaSpecification tagging behavior in the linked AWS documentation, then add coverage for the provided TypeScript reproduction and verify that tags are emitted for each replica.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, databases, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100