https://github.com/rhythmictech/terraform-aws-route53-resolver-rule
Create and manage a Route 53 Resolver Resolver Rule.
https://github.com/rhythmictech/terraform-aws-route53-resolver-rule
aws route53 terraform terraform-module terraform-modules
Last synced: 6 months ago
JSON representation
Create and manage a Route 53 Resolver Resolver Rule.
- Host: GitHub
- URL: https://github.com/rhythmictech/terraform-aws-route53-resolver-rule
- Owner: rhythmictech
- License: mit
- Created: 2019-06-16T02:03:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-18T19:48:07.000Z (over 3 years ago)
- Last Synced: 2025-04-04T07:11:22.478Z (6 months ago)
- Topics: aws, route53, terraform, terraform-module, terraform-modules
- Language: HCL
- Homepage: https://registry.terraform.io/modules/rhythmictech/route53-resolver-rule/aws
- Size: 17.6 KB
- Stars: 4
- Watchers: 1
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-aws-route53-resolver-rule
[](https://github.com/rhythmictech/terraform-aws-route53-resolver-rule/actions)Create and manage a [Route 53 Resolver Resolver Rule](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-rules-managing.html).
## Usage
```
# Create a rule and assign it to a given VPC
module "route53-rule-ad-corp" {
source = "git::https://github.com/rhythmictech/terraform-aws-route53-resolver-rule?ref=v0.0.2"
associated_vpcs = ["vpc-1234567"]
forward_domain = "ad.mycompany.com."
forward_ips = ["192.168.100.10", "192.168.100.11"]
resolver_endpoint = module.route53-outbound.endpoint_id
}# Create a rule without VPC assignment(and share it via RAM)
module "route53-rule-ad-corp" {
source = "git::https://github.com/rhythmictech/terraform-aws-route53-resolver-rule?ref=v0.0.2"
forward_domain = "ad.mycompany.com."
forward_ips = ["192.168.100.10", "192.168.100.11"]
resolver_endpoint = module.route53-outbound.endpoint_id
}```
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| associated\_vpcs | List of VPC IDs to associate rule to | `list(string)` | null | no |
| 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 |## Related Projects
* [Route 53 Resolver Endpoint module](https://github.com/rhythmictech/terraform-aws-route53-endpoint)