hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.71k stars 9.07k forks source link

[New]: copy-db-cluster-snapshot similar to db_snapshot_copy #27926

Open mirzazeyrek opened 1 year ago

mirzazeyrek commented 1 year ago

Description

I am looking for a functionality like:

aws rds copy-db-cluster-snapshot 
--region eu-central-1 
--source-db-cluster-snapshot-identifier "arn:aws:rds:eu-west-1:..."
--target-db-cluster-snapshot-identifier "arn:aws:rds:eu-central:..."

There is a method but it is not compatible with cluster db snapshots:

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_snapshot_copy

Requested Resource(s) and/or Data Source(s)

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_snapshot_copy

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cluster_db_snapshot_copy (not exists)

Potential Terraform Configuration

resource "aws_db_instance" "frankfurt" {
  allocated_storage = 10
  engine            = "aurora-mysql"
  engine_version    = "8.0.mysql_aurora.3.02.2"
  instance_class    = "db.r6g.2xlarge"
  name              = "baz"
  password          = "barbarbarbar"
  username          = "foo"
}

resource "aws_db_snapshot" "ireland" {
  db_instance_identifier = aws_db_instance.example.id
  db_snapshot_identifier = "testsnapshot1234"
}

resource "aws_cluster_db_snapshot_copy" "example" {
  source_db_snapshot_identifier = aws_db_snapshot.example.db_snapshot_arn
  target_db_snapshot_identifier = "testsnapshot1234-copy"
}

References

No response

Would you like to implement a fix?

No response

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

mirzazeyrek commented 10 months ago

Is there any progress on this ? :upside_down_face: