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.83k stars 9.17k forks source link

[NewResource]: Add support to create/update/delete snapshot copy configuration for Amazon Redshift Serverless #36808

Open marcinbelczewski opened 7 months ago

marcinbelczewski commented 7 months ago

Description

Add support to create/update/delete snapshot copy configuration for Amazon Redshift Serverless

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

Potential Terraform Configuration

provider "aws" {
  region = "us-east-1"
}

provider "aws" {
  alias  = "west"
  region = "us-west-2"
}

resource "aws_kms_key" "example" {
  provider = aws.west
}

resource "aws_redshiftserverless_namespace" "example" {
  namespace_name = "example-namespace"
}

resource "aws_redshiftserverless_snapshot_copy_configuration" "example" {
  namespace_name            = aws_redshiftserverless_namespace.example.namespace_name
  destination_kms_key_id    = aws_kms_key.example.arn  
  destination_region        = "us-west-2"
  snapshot_retention_period = 7
}

References

CreateSnapshotCopyConfiguration in Redshift Serverless API Working with snapshots and recovery points

Would you like to implement a fix?

Yes

github-actions[bot] commented 7 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue