Amazon Web Service (AWS)

Route 53

Amazon Route 53 is a scalable and highly available Domain Name System (DNS) service used for routing end users to internet applications by translating domain names into their IP addresses.
Route 53

  • name - (Required) This is the name of the hosted zone.
  • comment - (Optional) A comment for the hosted zone. Defaults to 'Managed by Terraform'.
  • delegation_set_id - (Optional) The ID of the reusable delegation set whose NS records you want to assign to the hosted zone. Conflicts with vpc as delegation sets can only be used for public zones.
  • force_destroy - (Optional) Whether to destroy all records (possibly managed outside of Terraform) in the zone when destroying the zone.
  • tags - (Optional) A map of tags to assign to the zone. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
  • vpc - (Optional) Configuration block(s) specifying VPC(s) to associate with a private hosted zone. Conflicts with the delegation_set_id argument in this resource and any aws_route53_zone_association resource specifying the same zone ID. Detailed below.

vpc Argument Reference

  • vpc_id - (Required) ID of the VPC to associate.
  • vpc_region - (Optional) Region of the VPC to associate. Defaults to AWS provider region.

Associating resources with a
Route 53
Resources do not "belong" to a
Route 53
Rather, one or more Security Groups are associated to a resource.
Route 53
via Terraform:
The following HCL creates a public zone

resource "aws_route53_zone" "primary" {
 name = ""

Route 53
via CLI:

--name <value>
[--vpc <value>]
--caller-reference <value>
[--hosted-zone-config <value>]
[--delegation-set-id <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--endpoint-url <value>]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]


aws route53 create-hosted-zone --name --caller-reference 2014-04-01-18:47 --hosted-zone-config Comment="command-line version"

Best Practices for
Route 53

Categorized by Availability, Security & Compliance and Cost

No items found.
Explore all the rules our platform covers
All Resources