Skip to content

Instantly share code, notes, and snippets.

@shanielh
Created August 31, 2015 07:14
Show Gist options
  • Save shanielh/415f654efeb8b36fe841 to your computer and use it in GitHub Desktop.
Save shanielh/415f654efeb8b36fe841 to your computer and use it in GitHub Desktop.
Terraform Destroy Bug :(
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
module.a.vpc.aws_vpc.main: Refreshing state... (ID: vpc-a526b8c0)
module.a.vpc.aws_internet_gateway.main: Refreshing state... (ID: igw-bda511d8)
module.a.vpc.aws_subnet.main: Refreshing state... (ID: subnet-386d1e4f)
module.a.aws_security_group.b: Refreshing state... (ID: sg-dc0cfdb8)
module.a.aws_security_group.elb: Refreshing state... (ID: sg-ca0cfdae)
module.a.aws_security_group.consul-agents: Refreshing state... (ID: sg-d60cfdb2)
module.a.aws_security_group.aerospike: Refreshing state... (ID: sg-d50cfdb1)
module.a.aws_security_group.ssh: Refreshing state... (ID: sg-c90cfdad)
module.a.aws_security_group.graphite: Refreshing state... (ID: sg-d70cfdb3)
module.a.aws_security_group.consul: Refreshing state... (ID: sg-d30cfdb7)
module.a.aws_security_group.c: Refreshing state... (ID: sg-c80cfdac)
module.a.aws_security_group.h: Refreshing state... (ID: sg-de0cfdba)
module.a.aws_security_group.rdp: Refreshing state... (ID: sg-d40cfdb0)
module.a.aws_security_group.riemann-server: Refreshing state... (ID: sg-cb0cfdaf)
module.a.vpc.aws_route_table.main: Refreshing state... (ID: rtb-db2655be)
module.a.aws_security_group.ml: Refreshing state... (ID: sg-d80cfdbc)
module.a.consul-server.aws_instance.server: Refreshing state... (ID: i-cd3d4c6c)
module.a.vpc.aws_main_route_table_association.main: Refreshing state... (ID: rtbassoc-89773aec)
module.a.template_file.ml-user-data: Refreshing state... (ID: 6604132550a904c3bda0ede3d53cd2f575ba318404deb71f0a790c1011d9e1d5)
module.a.aws_route53_record.consul: Refreshing state... (ID: ZONEID_consul.mt.integration_A)
module.a.aerospike.template_file.cloud-init: Refreshing state... (ID: 1ac055dc843cf4a6ce86eb5a18e2f13474275d3345851d26e132e0861526796c)
module.a.b.template_file.cloud-init: Refreshing state... (ID: ca578cf582fe6b4e9c58377e13925531c252a7eeab6d89bf301e4511fbaa9496)
module.a.riemann.template_file.cloud-init: Refreshing state... (ID: de8522167d241cc2647229e35bbd512468f7b17a4a9c7025b38fe0b8d045da9d)
module.a.c.template_file.cloud-init: Refreshing state... (ID: 1f9df3b8efd88559520f01fd2571263fac885ce7fd2f8708819a2de074f9d5b6)
module.a.p.template_file.cloud-init: Refreshing state... (ID: 3ec26ef7e0c905d81f65a1779f08f657ea4802b5a0e2ab7702e13ba459e09fe4)
module.a.h.template_file.cloud-init: Refreshing state... (ID: 42faa73d879068bcc43e7e3276149158f62ff6631143fad58aeddd41152edfd7)
module.a.wrk.template_file.cloud-init: Refreshing state... (ID: 09732149bd6f7dbcbd87c10bd4f6a7292f457ffb86301dbfe8911eb00a2d5eeb)
module.a.b.aws_instance.cloudinit: Refreshing state... (ID: i-353d4c94)
module.a.riemann.aws_instance.cloudinit: Refreshing state... (ID: i-a63c4d07)
module.a.c.aws_instance.cloudinit: Refreshing state... (ID: i-c13c4d60)
module.a.p.aws_instance.cloudinit: Refreshing state... (ID: i-a73c4d06)
module.a.h.aws_instance.cloudinit: Refreshing state... (ID: i-343d4c95)
module.a.aws_route53_record.riemann: Refreshing state... (ID: ZONEID_riemann.mt.integration_A)
module.a.aws_elb.b-elb: Refreshing state... (ID: elb-b-elb)
module.a.aws_elb.c-elb: Refreshing state... (ID: elb-c)
module.a.aws_route53_record.h: Refreshing state... (ID: ZONEID_h.mt.integration_A_h)
module.a.aws_route53_record.c: Refreshing state... (ID: ZONEID_c.mt.integration_A)
module.a.aws_route53_record.b: Refreshing state... (ID: ZONEID_b.mt.integration_A)
aws_route53_record.c: Destroying...
aws_route53_record.b: Destroying...
aws_route53_record.riemann: Destroying...
aws_route53_record.consul: Destroying...
aws_route53_record.h: Destroying...
aws_security_group.ml: Destroying...
aws_instance.cloudinit: Destroying...
aws_security_group.rdp: Destroying...
template_file.ml-user-data: Destroying...
template_file.ml-user-data: Destruction complete
template_file.cloud-init: Destroying...
aws_main_route_table_association.main: Destroying...
template_file.cloud-init: Destruction complete
template_file.cloud-init: Destroying...
template_file.cloud-init: Destruction complete
aws_main_route_table_association.main: Destruction complete
aws_route_table.main: Destroying...
aws_security_group.ml: Destruction complete
aws_route53_record.c: Destruction complete
aws_elb.c-elb: Destroying...
aws_route_table.main: Destruction complete
aws_internet_gateway.main: Destroying...
aws_elb.c-elb: Destruction complete
aws_instance.cloudinit: Destroying...
aws_security_group.rdp: Destruction complete
aws_route53_record.riemann: Destruction complete
aws_instance.cloudinit: Destroying...
aws_route53_record.h: Destruction complete
aws_instance.cloudinit: Destroying...
aws_route53_record.b: Destruction complete
aws_elb.b-elb: Destroying...
aws_elb.b-elb: Destruction complete
aws_security_group.elb: Destroying...
aws_instance.cloudinit: Destroying...
aws_route53_record.consul: Destruction complete
aws_instance.cloudinit: Destruction complete
template_file.cloud-init: Destroying...
template_file.cloud-init: Destruction complete
template_file.cloud-init: Destroying...
aws_security_group.h: Destroying...
template_file.cloud-init: Destruction complete
aws_security_group.h: Destruction complete
aws_security_group.elb: Destruction complete
template_file.cloud-init: Destroying...
aws_security_group.riemann-server: Destroying...
aws_security_group.graphite: Destroying...
template_file.cloud-init: Destruction complete
aws_security_group.riemann-server: Destruction complete
aws_security_group.graphite: Destruction complete
template_file.cloud-init: Destroying...
aws_security_group.c: Destroying...
template_file.cloud-init: Destruction complete
aws_security_group.c: Destruction complete
template_file.cloud-init: Destroying...
aws_security_group.aerospike: Destroying...
aws_security_group.b: Destroying...
template_file.cloud-init: Destruction complete
aws_instance.server: Destroying...
aws_security_group.aerospike: Destruction complete
aws_security_group.b: Destruction complete
aws_internet_gateway.main: Destruction complete
aws_instance.server: Destruction complete
aws_subnet.main: Destroying...
aws_security_group.ssh: Destroying...
aws_security_group.consul: Destroying...
aws_security_group.consul-agents: Destroying...
aws_security_group.ssh: Destruction complete
aws_security_group.consul-agents: Destruction complete
aws_security_group.consul: Destruction complete
aws_subnet.main: Destruction complete
aws_vpc.main: Destroying...
aws_vpc.main: Destruction complete
Error applying plan:
8 error(s) occurred:
* Resource 'aws_security_group.consul-agents' does not have attribute 'id' for variable 'aws_security_group.consul-agents.id'
* Resource 'aws_security_group.aerospike' does not have attribute 'id' for variable 'aws_security_group.aerospike.id'
* Resource 'aws_security_group.aerospike' does not have attribute 'id' for variable 'aws_security_group.aerospike.id'
* Resource 'aws_security_group.aerospike' does not have attribute 'id' for variable 'aws_security_group.aerospike.id'
* Resource 'aws_security_group.consul-agents' does not have attribute 'id' for variable 'aws_security_group.consul-agents.id'
* Resource 'aws_security_group.ssh' does not have attribute 'id' for variable 'aws_security_group.ssh.id'
* Resource 'aws_security_group.consul-agents' does not have attribute 'id' for variable 'aws_security_group.consul-agents.id'
* Resource 'aws_security_group.consul' does not have attribute 'id' for variable 'aws_security_group.consul.id'
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