Skip to content

Latest commit

History

History

public-zone

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

public-zone

This module creates following resources.

  • aws_route53_zone
  • aws_route53_query_log (optional)
  • aws_route53_record (optional)

Requirements

Name Version
terraform >= 1.6
aws >= 5.51

Providers

Name Version
aws 5.47.0

Modules

Name Source Version
resource_group tedilabs/misc/aws//modules/resource-group ~> 0.10.0

Resources

Name Type
aws_route53_query_log.this resource
aws_route53_record.ns resource
aws_route53_zone.public resource

Inputs

Name Description Type Default Required
name (Required) The name of the Hosted Zone. string n/a yes
delegation_set (Optional) The ID of the reusable delegation set whose NS records you want to assign to the Hosted Zone. string null no
description (Optional) A description for the Hosted Zone. string "Managed by Terraform." no
force_destroy (Optional) Whether to destroy all records (possibly managed outside of Terraform) in the zone when destroying the zone. Defaults to false. bool false no
logging (Optional) The configuration of Route53 query logging. logging as defined below.
(Optional) cloudwatch - A configuration to define where the execution history events are logged. cloudwatch as defined below.
(Optional) enabled - Whether to enable or disable Route53 query logging.
(Optional) log_group - The ARN (Amazon Resource Name) of the CloudWatch Log Group. The CloudWatch log group must be in the us-east-1 region. A permissive CloudWatch log resource policy must be in place.
object({
cloudwatch = optional(object({
enabled = optional(bool, false)
log_group = optional(string, "")
}), {})
})
{} no
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
namespace (Optional) The namespace of the Hosted Zone. Just for categorising overlapped hosted zones. Defaults to default. string "default" no
ns_records (Optional) A map of NS records for the zone. Each key of the map is the record name. Each value of ns_records as defined below.
(Required) values - A list of the record values
(Optional) ttl - The TTL of the record. Defaults to 300.
map(object({
values = list(string)
ttl = optional(number, 300)
}))
{} no
resource_group_description (Optional) The description of Resource Group. string "Managed by Terraform." no
resource_group_enabled (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. bool true no
resource_group_name (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws. string "" no
tags (Optional) A map of tags to add to all resources. map(string) {} no

Outputs

Name Description
arn The Amazon Resource Name (ARN) of the Hosted Zone.
delegation_set The ID of the assigned delegation set.
description A description for the Hosted Zone.
id The Hosted Zone ID. This can be referenced by zone records.
logging A configuration for query logging of the Route53 Hosted Zone.
cloudwatch - The configuration for Route53 query logs to CloudWatch Logs.
name The name of the Hosted Zone.
name_servers A list of name servers in associated (or default) delegation set.
namespace The namespace of the Hosted Zone.
ns_records A map of NS records for the zone. Each key of the map is the record name.
values - A list of the record values
ttl - The TTL of the record.
primary_name_server The Route 53 name server that created the SOA record.