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.74k stars 9.1k forks source link

[New]: Add support for resource to initiate zonal shifts using application recovery controller #34305

Open bobmshannon opened 10 months ago

bobmshannon commented 10 months ago

Description

Route53 Application Recovery Controller supports initiating zonal shifts to divert traffic away from a specific zone associated with an Elastic Load Balancer. There should be a new resource that allows a the lifecycle of a zonal shift to be managed and applied to any aws_lb resource that supports it.

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

aws_route53recoverycontrolconfig_zonal_shift

Potential Terraform Configuration

resource "aws_route53recoverycontrolconfig_zonal_shift" "initiate-zonal-shift" {
    availability_zone = "us-east-1a"
    expires_in = "3h"
    acknowledge_capacity_reduction = true
    load_balancer_arn = "arn:aws:elasticloadbalancing:us-east-2:123456789012:listener/app/my-load-balancer/1234567890123456/1234567890123456"
}

When the aws_route53recoverycontrolconfig_zonal_shift resource is destroyed, any corresponding zonal shifts (if any exist and are active) are to be cancelled.

References

Documentation https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html https://us-east-1.console.aws.amazon.com/route53recovery/zonalshift/home?region=us-east-1#/start-zonal-shift https://aws.amazon.com/about-aws/whats-new/2022/11/amazon-route-53-application-recovery-controller-zonal-shift/

Console (screenshot)

Screen Shot 2023-11-07 at 9 43 00 PM

Would you like to implement a fix?

None

github-actions[bot] commented 10 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue