Git Product home page Git Product logo

Comments (10)

netors avatar netors commented on May 28, 2024 5

I had this issue, turns out that the security group was still attached to an available elastic network interface, navigate to elastic network interfaces and search for your security group there, delete the network interface and terraform will be able to delete it. I got the hint when attempting to manually delete the security group in the AWS Console

from terraform-aws-rds-aurora.

miguelaferreira avatar miguelaferreira commented on May 28, 2024 1

Hi everyone. Thanks for reporting this.

I'm not sure what the "dependent object" is. In the module the security group is populated with two rules, but since those are under the control of terraform I don't think that's it.

Anyway, for reference, it seems to me like it should be possible to work around this issue by creating a temporary SG to replace the one terraform want's to re-create, then let terraform re-create the SG and assign it back to where it was in the first place. On the other hand, we can also add some code to the module to "fix it". That code would be a new variable to override the description on the SG and set it to the terraform default of "Managed by Terraform". Is that the kind of fix you are looking for @antonbabenko?

from terraform-aws-rds-aurora.

antonbabenko avatar antonbabenko commented on May 28, 2024 1

v2.12.0 has been released with this bug fixed.

I've based it on #86 but I made this release backward compatible with the previous versions, so it should work without any new arguments (recreation to just update SG is not possible for most users).

from terraform-aws-rds-aurora.

pritisolanki avatar pritisolanki commented on May 28, 2024 1

I added vpc_id and tried applying the change and got this error - Error deleting security group: DependencyViolation: resource sg-xxxx has a dependent object.

from terraform-aws-rds-aurora.

antonbabenko avatar antonbabenko commented on May 28, 2024

@miguelaferreira could you please take a look and fix this one?

from terraform-aws-rds-aurora.

skorfmann avatar skorfmann commented on May 28, 2024

we had the same issue.

from terraform-aws-rds-aurora.

marcincuber avatar marcincuber commented on May 28, 2024

Same here.

from terraform-aws-rds-aurora.

miguelaferreira avatar miguelaferreira commented on May 28, 2024

I've made a WIP PR #86 to address this issue with a variable to override the SG description. It would be helpful to me if people could test that and validate it is enough to prevent the issue.
I did test the PR using a new example that it introduces, but I would love to have extra feedback.

from terraform-aws-rds-aurora.

joaoheron avatar joaoheron commented on May 28, 2024

Just had this same issue on Terraform v0.12.29

from terraform-aws-rds-aurora.

github-actions avatar github-actions commented on May 28, 2024

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

from terraform-aws-rds-aurora.

Related Issues (20)

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.