-
-
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 in a workspace with input variables, followed by targeted destruction #164
Conversation
-tf=plan -chdir=sample_instance -workspace=dev -var-file=env/dev.tfvars |
Plan: 1 to add, 0 to change, 0 to destroy.
|
-tf=apply -chdir=sample_instance -workspace=dev -var-file=env/dev.tfvars |
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
|
-tf=plan -destroy -target=aws_instance.sample,data.aws_ami.ubuntu -chdir=sample_instance -workspace=dev -var-file=env/dev.tfvars |
Plan: 0 to add, 0 to change, 1 to destroy.
|
-tf=apply -destroy -target=aws_instance.sample,data.aws_ami.ubuntu -chdir=sample_instance -workspace=dev -var-file=env/dev.tfvars |
Apply complete! Resources: 0 added, 0 changed, 1 destroyed.
|
Use-case scenario
Provision resources in a workspace with input variables, followed by targeted destruction.
For demo purposes, I have split out
plan
andapply
outputs to separate comments, instead of updating the same one.