hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.18k forks source link

[Enhancement]: aws_route53_resolver_rule #40121

Open sputmayer opened 15 hours ago

sputmayer commented 15 hours ago

Description

The terraform provider for aws_route53_resolver_rule has a Configuration block called target_ip. This object needs a new parameter introduced to support Server Name Indication which is required if trying to connect to a DoH using fqdn. Based on AWS Documentation here Resolving the target IP address of the FQDN of a DoH resolver on your network over the outbound endpoint is not supported. Outbound endpoints need the target IP address of DoH resolver on your network to forward the DoH queries to. If the DoH resolver on your network needs the FQDN in the TLS SNI and in the HTTP Host header, ServerNameIndication must be provided.

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-forwarding-outbound-queries.html#:~:text=must%20be%20provided.-,ServerNameIndication,-The%20Server%20Name

The Server Name Indication of the DoH server that you want to forward queries to. This is only used if the Protocol is DoH.

Can this be added to the provider to support this feature via Terraform.

Affected Resource(s) and/or Data Source(s)

aws_route53_resolver_rule

Potential Terraform Configuration

target_ip {
    ip = "x.x.x.x"
    port = 443
    protocol = "DoH"
    sni = "dns.example.com"
  }

References

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-forwarding-outbound-queries.html

Would you like to implement a fix?

Yes

github-actions[bot] commented 15 hours ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue