Skip to content

Latest commit

 

History

History

private-zone

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

private-zone

This module creates following resources.

  • aws_route53_zone
  • aws_route53_zone_vpc_association (optional)
  • aws_route53_vpc_association_authorization (optional)

Requirements

Name Version
terraform >= 1.6
aws >= 5.51

Providers

Name Version
aws 5.51.1

Modules

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

Resources

Name Type
aws_route53_vpc_association_authorization.this resource
aws_route53_zone.private resource
aws_route53_zone_association.secondary resource

Inputs

Name Description Type Default Required
name (Required) The name of the Hosted Zone. string n/a yes
primary_vpc_association (Required) The Primary VPC to associate with the private hosted zone. primary_vpc_association block as defined below.
(Required) vpc_id - The ID of the VPC to associate with the private Hosted Zone.
(Optional) region - The region of the VPC to associate. Defaults to the region of the AWS provider.
object({
region = optional(string)
vpc_id = string
})
n/a yes
cross_account_vpc_association_authorizations (Optional) A list of authorizations for a VPC in a peer account to be associated with the Route53 Hosted Zone. Each block of cross_account_vpc_association_authorizations as defined below.
(Required) vpc_id - The ID of the VPC to authorize for association with the private Hosted Zone.
(Optional) region - The region of the VPC to authorize. Defaults to the region of the AWS provider.
list(object({
region = optional(string)
vpc_id = string
}))
[] 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
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
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
secondary_vpc_associations (Optional) A list of secondary VPCs to associate with the private hosted zone. Each
block of secondary_vpc_associations as defined below.
(Required) vpc_id - The ID of the VPC to associate with the private Hosted Zone.
(Optional) region - The region of the VPC to associate. Defaults to the region of the AWS provider.
list(object({
region = optional(string)
vpc_id = 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.
cross_account_vpc_association_authorizations A list of authorized VPCs in cross accounts to associate with a private Hosted Zone.
description A description for the Hosted Zone.
id The Hosted Zone ID. This can be referenced by zone records.
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.
primary_name_server The Route 53 name server that created the SOA record.
vpc_associations A list of associated VPCs with a private Hosted Zone.