You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create PR environments for a number of my repos, these create entirely separate resources, they're spun up, some tests are run, and then they're torn down.
This is great, and terraform is great at this. The only evidence of the existence of this environment is that it leaves behind a remote state file with 0 resources in it. I remove it with the aws cli, but it'd be nice if this was an option on terraform destroy.
Attempted Solutions
I use aws s3 rm
Proposal
add a --delete-remote-state option for terraform destroy which deletes the remote state if all resources have been successfully removed
The text was updated successfully, but these errors were encountered:
Current Terraform Version
0.12.28
Use-cases
I create PR environments for a number of my repos, these create entirely separate resources, they're spun up, some tests are run, and then they're torn down.
This is great, and terraform is great at this. The only evidence of the existence of this environment is that it leaves behind a remote state file with 0 resources in it. I remove it with the aws cli, but it'd be nice if this was an option on terraform destroy.
Attempted Solutions
I use aws s3 rm
Proposal
add a
--delete-remote-state
option forterraform destroy
which deletes the remote state if all resources have been successfully removedThe text was updated successfully, but these errors were encountered: