-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provision resources with a backend, followed by destruction without confirmation #166
Conversation
-tf=plan -chdir=sample_bucket -backend-config=backend/dev.tfbackend |
Diff of format changes.main.tf
--- old/main.tf
+++ new/main.tf
@@ -9,6 +9,6 @@
# Output the ID of the sample S3 bucket.
output "sample_bucket_id" {
description = "ID of the sample S3 bucket."
- value = module.sample_bucket.id
+ value = module.sample_bucket.id
}
Plan: 2 to add, 0 to change, 0 to destroy.
|
-tf=apply -chdir=sample_bucket -backend-config=backend/dev.tfbackend |
Diff of format changes.main.tf
--- old/main.tf
+++ new/main.tf
@@ -9,6 +9,6 @@
# Output the ID of the sample S3 bucket.
output "sample_bucket_id" {
description = "ID of the sample S3 bucket."
- value = module.sample_bucket.id
+ value = module.sample_bucket.id
}
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
|
-tf=apply -destroy -auto-approve -chdir=sample_bucket -backend-config=backend/dev.tfbackend |
Diff of format changes.main.tf
--- old/main.tf
+++ new/main.tf
@@ -9,6 +9,6 @@
# Output the ID of the sample S3 bucket.
output "sample_bucket_id" {
description = "ID of the sample S3 bucket."
- value = module.sample_bucket.id
+ value = module.sample_bucket.id
}
Apply complete! Resources: 0 added, 0 changed, 2 destroyed.
|
Use-case scenario
Provision resources with a backend, followed by destruction without confirmation.
For demo purposes, I have split out
plan
andapply
outputs to separate comments, instead of updating the same one.