Skip to content

Commit

Permalink
Merge pull request #6 from gusse/feature_dns_port
Browse files Browse the repository at this point in the history
Support configuring DNS port for resolver rules
  • Loading branch information
sblack4 authored Feb 16, 2021
2 parents e0e5f00 + 7a7dc15 commit cc7e975
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ module "route53-rule-ad-corp" {
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| associated\_vpcs | List of VPC IDs to associate rule to | list(string) | n/a | yes |
| forward\_domain | Domain name to forward requests for | string | n/a | yes |
| forward\_ips | List of IPs to forward DNS requests to | list(string) | n/a | yes |
| resolver\_endpoint | Resolver Endpoint ID | string | n/a | yes |
| resource\_share\_accounts | List of account IDs to share this resolver rule with | list(string) | `[]` | no |
| tags | Map of tags to apply to supported resources | map(string) | `{}` | no |
|------|-------------|------|---------|:--------:|
| associated\_vpcs | List of VPC IDs to associate rule to | `list(string)` | n/a | yes |
| dns\_port | DNS port to forward DNS requests to | `number` | `53` | no |
| forward\_domain | Domain name to forward requests for | `string` | n/a | yes |
| forward\_ips | List of IPs to forward DNS requests to | `list(string)` | n/a | yes |
| resolver\_endpoint | Resolver Endpoint ID | `string` | n/a | yes |
| resource\_share\_accounts | List of account IDs to share this resolver rule with | `list(string)` | `[]` | no |
| tags | Map of tags to apply to supported resources | `map(string)` | `{}` | no |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

Expand Down
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ resource "aws_route53_resolver_rule" "fwd" {
for_each = var.forward_ips

content {
ip = target_ip.value
ip = target_ip.value
port = var.dns_port
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ variable "forward_ips" {
type = list(string)
}

variable "dns_port" {
type = number
description = "DNS port to forward DNS requests to"
default = 53
}

variable "resolver_endpoint" {
description = "Resolver Endpoint ID"
type = string
Expand Down

0 comments on commit cc7e975

Please sign in to comment.