Comments (10)
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.
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.
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.
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.
@miguelaferreira could you please take a look and fix this one?
from terraform-aws-rds-aurora.
we had the same issue.
from terraform-aws-rds-aurora.
Same here.
from terraform-aws-rds-aurora.
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.
Just had this same issue on Terraform v0.12.29
from terraform-aws-rds-aurora.
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)
- Cluster members are not ignored HOT 6
- Multi AZ HOT 6
- lifecycle option for cluster_instance HOT 3
- Variables.tf file HOT 3
- Aurora module IAM role attachment with feature giving error HOT 2
- Upgrading Global Database Clusters Yields Inconsistent Plan HOT 6
- The removal of support for master password generation was maybe too hasty. HOT 5
- aws_appautoscaling_target causing perpetual drift HOT 3
- Autoscaling does not scale cluster to min capacity on creation HOT 6
- Typo in repo About section HOT 2
- Error when creating role in China HOT 3
- Error while creating replica cluster, HOT 1
- terraform-aws-rds-aurora module should allow list of databases to be created in postgres instance/cluster HOT 2
- Enabling the RDS Data API for Postgres Serverless v2 HOT 6
- Allow setting cloud watch log groupclass HOT 3
- Global flag `performance_insights` needs to be especify in all instances to take effect HOT 3
- Support custom ignore_change HOT 9
- Add lifecyle ignore changes on AZs to aws_rds_cluster resource HOT 1
- Global flag `performance_insights` needs to be especify in all instances to take effect
- rds-aurora mysql example contains two sets of db_parameter_group declarations HOT 1
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-rds-aurora.