This Terraform module creates the base networking infrastructure on AWS.
Check valid versions on:
- Github Releases: https://github.com/cn-terraform/terraform-aws-route53/releases
- Terraform Module Registry: https://registry.terraform.io/modules/cn-terraform/networking/aws
Pleas run this command right after cloning the repository.
pre-commit install
For that you may need to install the folowwing tools:
In order to run all checks at any point run the following command:
pre-commit run --all-files
Name | Version |
---|---|
terraform | >= 0.13 |
aws | >= 5 |
Name | Version |
---|---|
aws | 5.17.0 |
No modules.
Name | Type |
---|---|
aws_route53_record.records | resource |
aws_route53_zone.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
comment | (Optional) A comment for the hosted zone. Defaults to 'Managed by Terraform' | string |
null |
no |
create_hosted_zone | (Optional) If true a hosted zone will be created | bool |
true |
no |
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. | string |
null |
no |
force_destroy | (Optional) Whether to destroy all records (possibly managed outside of Terraform) in the zone when destroying the zone. | bool |
true |
no |
hosted_zone_id | (Optional) Required when create_hosted_zone is false. This is the hosted zone where records will be created. | string |
null |
no |
hosted_zone_name | (Optional) Required when create_hosted_zone is true. This is the name of the hosted zone. | string |
null |
no |
hosted_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. | map(string) |
{} |
no |
records | (Optional) Map of records to add to the hosted zone | map(object({ |
{} |
no |
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. | object({ |
null |
no |
Name | Description |
---|---|
arn | The Amazon Resource Name (ARN) of the Hosted Zone. |
name_servers | A list of name servers in associated (or default) delegation set. Find more about delegation sets in AWS docs. |
primary_name_server | The Route 53 name server that created the SOA record. |
records | ------------------------------------------------------------------------------ Records ------------------------------------------------------------------------------ |
tags_all | A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block. |
zone_id | The Hosted Zone ID. This can be referenced by zone records. |