Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Example cleaning

...

To achieve this change, you can simply edit the main.tf file, namely disabling the floating IP address and the second extra volume:

Code Block
locals {

  # Some untouched customization ...

  instance_has_fip   = false

  # More untouched customization ...

  extra_volume2      = false

  # ...
}

...


In our example, the resulting customization would look like:

...

If successfully completed, the execution summary will list four resources (out of the initial seven) as destroyed:

Code Block
...
module.instance.openstack_networking_floatingip_v2.fip[0]: Destruction complete after 8s
module.instance.openstack_blockstorage_volume_v3.instance_volume2[0]: Still destroying... [id=1201e3b3-0134-43a1-8ccc-85692ab76038, 00m10s elapsed]
module.instance.openstack_blockstorage_volume_v3.instance_volume2[0]: Destruction complete after 10s

Apply complete! Resources: 0 added, 0 changed, 4 destroyed.

...