Update Service Endpoint URL for AWS Network Firewall in GovCloud #21526
Labels
bug
Addresses a defect in current functionality.
fips
Pertains to the Federal Information Processing Standard (FIPS).
partition/aws-us-gov
Pertains to the aws-us-gov partition.
service/networkfirewall
Issues and PRs that pertain to the networkfirewall service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Relates #21641
Region where issue is encountered: us-gov-west-1
AWS publishes the AWS Network Firewall endpoints here: https://docs.aws.amazon.com/general/latest/gr/network-firewall.html, which states that for us-gov-west-1 the endpoint is https://network-firewall-fips.us-gov-west-1.amazonaws.com.
Currently, when I incorporate any AWS Network Firewall Terraform Resource: aws_networkfirewall_rule_group, aws_networkfirewall_firewall_policy, and aws_networkfirewall_firewall; it fails with the error:
Error: error creating NetworkFirewall Rule Group exfil: RequestError: send request failed
caused by: Post "https://network-firewall.us-gov-west-1.amazonaws.com/": dial tcp: lookup network-firewall.us-gov-west-1.amazonaws.com on [2001:558:feed::1]:53: no such host
It appears that terraform is following the service naming convention for non-govcloud service endpoints and is inadvertently trying to use the service endpoint in us-west-1. The govcloud endpoint should include the word "fips".
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.0.9
on darwin_amd64
provider registry.terraform.io/hashicorp/aws v3.63.0
Affected Resource(s)
aws_networkfirewall_rule_group, aws_networkfirewall_firewall_policy, and aws_networkfirewall_firewall
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
│ Error: error creating NetworkFirewall Rule Group exfil: RequestError: send request failed
│ caused by: Post "https://network-firewall.us-gov-west-1.amazonaws.com/": dial tcp: lookup network-firewall.us-gov-west-1.amazonaws.com on [2001:558:feed::1]:53: no such host
│
│ with aws_networkfirewall_rule_group.exfil,
│ on main.tf line 37, in resource "aws_networkfirewall_rule_group" "exfil":
│ 37: resource "aws_networkfirewall_rule_group" "exfil" {
│
╵
Panic Output
None
Expected Behavior
AWS Network Firewall Rule Group Created
Actual Behavior
Error
Steps to Reproduce
terraform apply
Important Factoids
GovCloud
References
The text was updated successfully, but these errors were encountered: