AWS Route 53 Zone Association

This page shows how to write Terraform and CloudFormation for Route 53 Zone Association and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_route53_zone_association)

Manages a Route53 Hosted Zone VPC association. VPC associations can only be made on private zones. See the aws_route53_vpc_association_authorization resource for setting up cross-account associations.

NOTE: Unless explicit association ordering is required (e.g., a separate cross-account association authorization), usage of this resource is not recommended. Use the vpc configuration blocks available within the aws_route53_zone resource instead. NOTE: Terraform provides both this standalone Zone VPC Association resource and exclusive VPC associations defined in-line in the aws_route53_zone resource via vpc configuration blocks. At this time, you cannot use those in-line VPC associations in conjunction with this resource and the same zone ID otherwise it will cause a perpetual difference in plan output. You can optionally use the generic Terraform resource lifecycle configuration block with ignore_changes in the aws_route53_zone resource to manage additional associations via this resource.

Parameters

Example Usage (from GitHub)

github-icondhlee011/AWS_Terraform
resource "aws_route53_zone_association" "seoul_attch" {
  zone_id = aws_route53_zone.seoul_zone.zone_id
  vpc_id  = aws_vpc.seoul.id
}


github-iconPolina-DevOps/Terraform-Mutable
resource "aws_route53_zone_association" "zone-associate" {
  zone_id       = var.INTERNAL_DNS_ZONE_ID
  vpc_id        = aws_vpc.main.id

CloudFormation Example (AWS::Route53::HostedZone HostedZoneConfig)

A complex type that contains an optional comment about your hosted zone. If you don't want to specify a comment, omit both the HostedZoneConfig and Comment elements.

Parameters

Comment Any comments that you want to include about the hosted zone.
Required: No
Type: String
Maximum: 256
Update requires: No interruption

Frequently asked questions

What is AWS Route 53 Zone Association?

AWS Route 53 Zone Association is a resource for Route 53 of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Route 53 Zone Association?

For Terraform, the dhlee011/AWS_Terraform and Polina-DevOps/Terraform-Mutable source code examples are useful. See the Terraform Example section for further details.