-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_networkfirewall_firewall - expose VPC endpoints to terraform #16350
Comments
Super hyped about this new service and gratified to see the rapid support from terraform! Thanks! |
I have a support customer with similar needs. I think I have a temporary workaround with something like this: data "aws_vpc_endpoint" "firewall" {
vpc_id = aws_vpc.example.id
tags = {
"AWSNetworkFirewallManaged" = "true"
"Firewall" = aws_networkfirewall_firewall.example.arn
}
depends_on = [aws_networkfirewall_firewall.example]
} then in the route table I can add: resource "aws_route_table" "gateway" {
vpc_id = aws_vpc.example.id
route {
cidr_block = aws_subnet.application.cidr_block
vpc_endpoint_id = data.aws_vpc_endpoint.firewall.id
}
} |
Thanks for the workaround example @USA-RedDragon . I hadn't gotten that far yet, but planned to do something similar. |
Scratch that, the data source won't work in this case as there is no way to filter the endpoints (all filter options we have are the same between all endpoints), and we just get a simple |
@USA-RedDragon Yup, just got to trying it and had the same issue myself. Guess I'm at a roadblock for now. :-( |
Luckily this is about to get an actual bug report to the engineering team so there's some potential we see a fix for this soon! |
I had reported the exact same issue and there is an internal bug id assigned to it. |
This has been released in version 3.18.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
Thanks @anGie44 ! Looking forward to trying this out next week. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
The aws_networkfirewall_firewall resource needs to expose the VPC endpoints created by the firewall for use in routing tables in order to actually use it. These endpoints are exposed in the FirewallStatus structure returned by the API.
For example:
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: