This purpose of this module is to manage and provision a central DNS solution with an AWS estate. Under this setup all private hosted zones defined within the spoke accounts have the ability to perform DNS resolution between them.
module "dns" {
source = "../../"
resolver_name = "outbound-central-dns"
tags = var.tags
resolver_rule_groups = [
{
ram_share_name = "internal"
ram_principals = {
"Deployments" = "arn:aws:organizations::536471746696:ou/o-7enwqk0f2c/ou-1tbg-mq4w830q"
"Workloads" = "arn:aws:organizations::536471746696:ou/o-7enwqk0f2c/ou-1tbg-lk6g79d4"
}
rules = [
{
name = "aws-appvia-local"
domain = "aws.appvia.local"
}
]
}
]
network = {
availability_zones = 2
transit_gateway_id = var.transit_gateway_id
private_netmask = 24
vpc_cidr = "10.90.0.0/21"
}
}
The terraform-docs
utility is used to generate this README. Follow the below steps to update:
- Make changes to the
.terraform-docs.yml
file - Fetch the
terraform-docs
binary (https://terraform-docs.io/user-guide/installation/) - Run
terraform-docs markdown table --output-file ${PWD}/README.md --output-mode inject .
Name | Version |
---|---|
aws | >= 5.0.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
network | The network to use for the endpoints and optinal resolvers | object({ |
n/a | yes |
resolver_name | Name of the Route53 resolver endpoint | string |
n/a | yes |
tags | Map of tags to apply to resources created by this module | map(string) |
n/a | yes |
resolver_endpoint_type | The Route 53 Resolver endpoint IP address type. Valid values: IPV4, IPV6, DUALSTACK. | string |
"IPV4" |
no |
resolver_protocols | List of protocols that the Route53 Outbound Resolver should support | list(string) |
[ |
no |
resolver_rule_groups | Map of Route53 Resolver Rules by group. Every rule in each group can be shared with principals via AWS RAM. | list(object({ |
[] |
no |
route53_zone_ids | List of Route53 Zone IDs to be associated with the resolver VPC. | list(string) |
[] |
no |
Name | Description |
---|---|
all_resolver_rules | Map of all resolver rules. |
endpoint | Details of the Route53 Outbound Resolver endpoint. |
resource_shares | Map of AWS RAM Shares by group. |
rules | Map of resolver rules by group. |