Skip to content

Instantly share code, notes, and snippets.

@bensojona
Created April 9, 2015 23:01
Show Gist options
  • Save bensojona/393f50766bd1300ee33d to your computer and use it in GitHub Desktop.
Save bensojona/393f50766bd1300ee33d to your computer and use it in GitHub Desktop.
Do you really want to destroy?
Terraform will delete all your managed infrastructure.
There is no undo. Only 'yes' will be accepted to confirm.
Enter a value: yes
aws_security_group.allow_all: Refreshing state... (ID: sg-54bdc030)
aws_key_pair.consul: Refreshing state... (ID: consul-key)
module.consul.aws_instance.consul.0: Refreshing state... (ID: i-8a47e177)
module.consul.aws_instance.consul.1: Refreshing state... (ID: i-bd46e040)
module.consul.aws_instance.consul.2: Refreshing state... (ID: i-3f46e0c2)
aws_security_group.allow_all: Destroying...
aws_key_pair.consul: Destroying...
aws_key_pair.consul: Destruction complete
aws_security_group.allow_all: Error: 1 error(s) occurred:
* resource sg-54bdc030 has a dependent object
Error applying plan:
2 error(s) occurred:
* 1 error(s) occurred:
* 1 error(s) occurred:
* resource sg-54bdc030 has a dependent object
* Resource 'aws_key_pair.consul' does not have attribute 'key_name' for variable 'aws_key_pair.consul.key_name'
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment