Skip to content

(docdb): copyTagsToSnapshot is missing in the DatabaseCluster Construct #30090

@mazyu36

Description

@mazyu36

Describe the feature

In the DatabaseCluster Construct, copyTagsToSnapshot is missing.

Use Case

Use this when you want to copy tags to snapshots.

Proposed Solution

Add copyTagsToSnapshot to the DatabaseCluster Construct.

const cluster = new docdb.DatabaseCluster(this, 'Database', {
  masterUser: {
    username: 'myuser', // NOTE: 'admin' is reserved by DocumentDB
    excludeCharacters: '\"@/:', // optional, defaults to the set "\"@/" and is also used for eventually created rotations
    secretName: '/myapp/mydocdb/masteruser', // optional, if you prefer to specify the secret name
  },
  instanceType: ec2.InstanceType.of(ec2.InstanceClass.MEMORY5, ec2.InstanceSize.LARGE),
  vpc,
  copyTagsToSnapshot: true, // Add
});

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.140.0

Environment details (OS name and version, etc.)

MacOS

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-docdbRelated to Amazon DocumentDBfeature-requestA feature should be added or improved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions