Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

private-zone

This module creates following resources.

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

Requirements

Name Version
terraform >= 1.12
aws >= 6.12

Providers

Name Version
aws 6.13.0

Modules

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

Resources

Name Type
aws_route53_vpc_association_authorization.this resource
aws_route53_zone.private resource
aws_route53_zone_association.secondary resource
aws_route53profiles_resource_association.this 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
profile_associations (Optional) A list of configurations to associate Route53 Profiles with the Hosted Zone. Each block of profile_associations as defined below.
(Required) name - The name of the resource association with the Route53 profile.
(Optional) region - The region of the Route53 profile. Defaults to the region of the AWS provider.
(Required) profile - The ID of the Route53 profile to associate with.
list(object({
name = string
region = optional(string)
profile = string
}))
[] no
resource_group (Optional) A configurations of Resource Group for this module. resource_group as defined below.
(Optional) enabled - Whether to create Resource Group to find and group AWS resources which are created by this module. Defaults to true.
(Optional) name - 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. If not provided, a name will be generated using the module name and instance name.
(Optional) description - The description of Resource Group. Defaults to Managed by Terraform..
object({
enabled = optional(bool, true)
name = optional(string, "")
description = optional(string, "Managed by Terraform.")
})
{} 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.
profile_associations A list of Route53 Profile associations with the Hosted Zone.
resource_group The resource group created to manage resources in this module.
vpc_associations A list of associated VPCs with a private Hosted Zone.