stavxyz / terraform-aws-backend

A Terraform module for your AWS Backend + a guide for bootstrapping your terraform managed project
Apache License 2.0
53 stars 32 forks source link

add docs for destroying infra, avoid destroying backend bucket #16

Open stavxyz opened 5 years ago

stavxyz commented 5 years ago

See https://github.com/samstav/terraform-aws-backend/issues/9

terraform state rm module.backend.aws_s3_bucket.tf_backend_bucket
sparr commented 2 months ago

For my use case I do want to destroy the backend bucket (and dynamo table, etc), I just need to destroy them last.

Removing the backend module block from my tf files has proven a helpful step along the way to this, although I didn't take sufficient notes for my whole process. I'll try to do that next time.