Comments (6)
including some screenshots of the issues/behavior i'm experiencing - I'm trying to destroy the NFW but it refuses to let me.
![Screenshot 2023-10-02 at 9 00 36 AM](https://private-user-images.githubusercontent.com/17804465/271993295-2653a18e-012f-403d-a0be-e2f540188593.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1NTYxOTMsIm5iZiI6MTcyMTU1NTg5MywicGF0aCI6Ii8xNzgwNDQ2NS8yNzE5OTMyOTUtMjY1M2ExOGUtMDEyZi00MDNkLWEwYmUtZTJmNTQwMTg4NTkzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDA5NTgxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxMDc5ZjQ1ZTFjZjE4M2M1Mjg0MzFmYzdlMTBhZGExZDY0NDRjNWE5ZTlkM2JlYjZmM2Q2ZjcyNWMyMjhkYzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xf9rhC58iDjzKRBLRea7nBScLYTOQsJGzPYPxjKUIWQ)
![Screenshot 2023-10-02 at 9 00 31 AM](https://private-user-images.githubusercontent.com/17804465/271993299-7a7cf0e2-3956-44cd-a9b8-df68bcc7558c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAi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GJzAaSPYSQpcfXCJidU2MQeYsCMkWtCxfwi2G9ieZRo)
Also talking to @douglas-f we're unsure of the reason to use google DNS over AWS DNS
from terraform-aws-vpc-nfw.
After more testing - it appears this keeps happening due to the VPCE being created by the custom routes - if its a custom route with internet_route, why does it not change to using IGW, or removed and in theory use default route? Its getting hung up on this i believe
from terraform-aws-vpc-nfw.
including some screenshots of the issues/behavior i'm experiencing - I'm trying to destroy the NFW but it refuses to let me.
![]()
![]()
![]()
Also talking to @douglas-f we're unsure of the reason to use google DNS over AWS DNS
The public custom route is only an example of a possible configuration. It's not meant to actually be practical or useful to implement in any way, since when I was asked to create a custom route I didn't understand what the use case is for the ask. So Google DNS is only used to have an IP address to point to, there's no other point to having it.
from terraform-aws-vpc-nfw.
After more testing - it appears this keeps happening due to the VPCE being created by the custom routes - if its a custom route with internet_route, why does it not change to using IGW, or removed and in theory use default route? Its getting hung up on this i believe
Are you running Terraform destroy, or are you changing a variable and trying to reapply?
The code itself should point the route to either the VPC endpoint or the IGW id depending on a boolean:
If something isn't being updated, that's a deeper Terraform question beyond my level of expertise. Nothing is set to ignore lifecycle changes AFAIK. When I did simple testing in the FastRAMP sandbox, I'm able to create and destroy without issues, I haven't tested updating already created resources.
Given the extensive use of "count" across the resources, this module doesn't seem like something you'd want to adjust in-place. Instead the entire module should be something that's planned correctly from the very creation of the environment.
from terraform-aws-vpc-nfw.
Fixed by PR: #11
Split the aws_route public_custom resource into 2 parts, 1 for NFW routing, 1 for all other destinations. By adjusting the count conditional to operate off of the deploy_aws_nfw boolean, we avoid the dependency hell that caused the issue.
Running Terraform apply again after setting "deploy_aws_nfw" property to "false" destroys only the NFW without errors:
from terraform-aws-vpc-nfw.
yea i wasn't destroying, bc there should be some flexibility with it to allow for us to in some capacity deploy it without being dependent on it too, bc we can't really destroy unless we do targeted, bc of having resources eventually in the subnets
from terraform-aws-vpc-nfw.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-vpc-nfw.