Giter Club home page Giter Club logo

Comments (6)

kourosh-forti-hands avatar kourosh-forti-hands commented on July 21, 2024

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 Screenshot 2023-10-02 at 9 00 31 AM Screenshot 2023-10-02 at 8 14 31 AM Screenshot 2023-10-02 at 8 58 11 AM

Also talking to @douglas-f we're unsure of the reason to use google DNS over AWS DNS
Screenshot 2023-10-02 at 9 00 25 AM

from terraform-aws-vpc-nfw.

kourosh-forti-hands avatar kourosh-forti-hands commented on July 21, 2024

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.

herman-wong-cf avatar herman-wong-cf commented on July 21, 2024

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 Screenshot 2023-10-02 at 9 00 31 AM Screenshot 2023-10-02 at 8 14 31 AM Screenshot 2023-10-02 at 8 58 11 AM
Also talking to @douglas-f we're unsure of the reason to use google DNS over AWS DNS Screenshot 2023-10-02 at 9 00 25 AM

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.

herman-wong-cf avatar herman-wong-cf commented on July 21, 2024

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:
image

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.

herman-wong-cf avatar herman-wong-cf commented on July 21, 2024

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:
image

from terraform-aws-vpc-nfw.

kourosh-forti-hands avatar kourosh-forti-hands commented on July 21, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.