Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for copy_tags_to_snapshot in aws_docdb_cluster_instance resource #78

Open
hassanzhd opened this issue Nov 28, 2023 · 0 comments

Comments

@hassanzhd
Copy link

Describe the Feature

Please add support for copy_tags_to_snapshot argument in aws_docdb_cluster_instance resource so that tags are copied to snapshots created for documentdb clusters

Expected Behavior

There is no support for copy_tags_to_snapshot argument in aws_docdb_cluster_instance resource which was added by AWS in version 5.21.0.

Use Case

The reason why we need this is because, snapshots generated for document_db clusters are untagged which in our case needs to be same as the ones provided on cluster_instance

Describe Ideal Solution

Update the resource as follows:

resource "aws_docdb_cluster_instance" "default" {
  count                        = module.this.enabled ? var.cluster_size : 0
  identifier                   = "${module.this.id}-${count.index + 1}"
  cluster_identifier           = join("", aws_docdb_cluster.default[*].id)
  apply_immediately            = var.apply_immediately
  preferred_maintenance_window = var.preferred_maintenance_window
  instance_class               = var.instance_class
  engine                       = var.engine
  auto_minor_version_upgrade   = var.auto_minor_version_upgrade
  enable_performance_insights  = var.enable_performance_insights
  ca_cert_identifier           = var.ca_cert_identifier
  tags                         = module.this.tags
  copy_tags_to_snapshot =  true
}

Alternatives Considered

No response

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant