terraform destroy aws_db_instance with db-subnet group and security group

53 views
Skip to first unread message

Madhavi Gauripeddi

unread,
Apr 15, 2021, 1:41:38 AM4/15/21
to Terraform

Hello all,

I am trying to destroy the aws_db_instance. How do I tell terraform to wait till the db-instance is destroyed and then proceed with security group and subnet-group destroying.

Sorry I am still learning and any help is sincerely appreciated.

Thanks,
Madhavi.

Fernando 🐼

unread,
Apr 15, 2021, 6:10:53 AM4/15/21
to terrafo...@googlegroups.com
that's exactly how terraform usually works. it follows a dependency graph.
you can enforce it via depends_on
-- 


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/9061d6b0-300b-41c8-8b37-5b6db2492e38n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages