terraform-ibm-modules / terraform-ibm-landing-zone

Creates a fully customizable VPC environment and compute resources (VSI, Red Hat OpenShift) with presets designed to meet strict compliance needs.
Apache License 2.0
8 stars 30 forks source link

[slz] terraform destroy fails: custom json #449

Closed surajsbharadwaj closed 1 year ago

surajsbharadwaj commented 1 year ago

We use custom json: https://github.com/terraform-ibm-modules/terraform-ibm-powervs-infrastructure/blob/main/solutions/ibm-catalog/presets/slz-for-powervs/rhel-vpc-pvs.preset.json.tftpl

If something errors during terraform apply, then terraform destroy breaks. It throws an error and doesnt destroy the resources.

Terraform apply:
Lets assume something breaks / failed to create some resource…/


2023/05/30 09:22:14 Terraform apply | module.landing_zone.module.landing_zone.random_string.random_cos_suffix: Creating...
 2023/05/30 09:22:14 Terraform apply | module.landing_zone.module.landing_zone.random_string.random_cos_suffix: Creation complete after 0s [id=dj1tazk8]
 2023/05/30 09:22:16 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-workload-rg"]: Creating...
 2023/05/30 09:22:16 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-service-rg"]: Creating...
 2023/05/30 09:22:16 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-management-rg"]: Creating...
 2023/05/30 09:22:16 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-edge-rg"]: Creating...
 2023/05/30 09:22:18 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-workload-rg"]: Creation complete after 3s [id=5ae4e48d27514877abf7e5455cbe1e1a]
 2023/05/30 09:22:18 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-service-rg"]: Creation complete after 3s [id=34325b1e153343aba0b4367de7688efb]
 2023/05/30 09:22:18 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-edge-rg"]: Creation complete after 3s [id=cf0da4798fdf45c3806cd673616cf3b0]
 2023/05/30 09:22:18 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-management-rg"]: Creation complete after 3s [id=6610a13eb8384e6098094c99f55d33c0]
 2023/05/30 09:22:18 Terraform apply | module.landing_zone.module.landing_zone.ibm_tg_gateway.transit_gateway[0]: Creating...
 2023/05/30 09:22:19 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_instance.cos["atracker-cos"]: Creating...
 2023/05/30 09:22:19 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_resource_instance.kms[0]: Creating...
 2023/05/30 09:22:19 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_instance.cos["cos"]: Creating...
 2023/05/30 09:22:19 Terraform apply | module.landing_zone.module.landing_zone.module.ssh_keys.ibm_is_ssh_key.ssh_key["ssh-key"]: Creating...
 2023/05/30 09:22:25 Terraform apply | module.landing_zone.module.landing_zone.module.ssh_keys.ibm_is_ssh_key.ssh_key["ssh-key"]: Creation complete after 7s [id=r018-4e85c8b7-72ab-4936-a166-b4f516c68cbf]
 2023/05/30 09:22:28 Terraform apply | module.landing_zone.module.landing_zone.ibm_tg_gateway.transit_gateway[0]: Still creating... [10s elapsed]
 2023/05/30 09:22:29 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_instance.cos["atracker-cos"]: Still creating... [10s elapsed]
 2023/05/30 09:22:29 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_resource_instance.kms[0]: Still creating... [10s elapsed]
 2023/05/30 09:22:29 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_instance.cos["cos"]: Still creating... [10s elapsed]
 2023/05/30 09:22:31 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_resource_instance.kms[0]: Creation complete after 13s [id=crn:v1:bluemix:public:kms:eu-gb:a/df3edcc619764557b81b55fe6a9d680d:73564112-7598-4858-9276-ae5adc3e97b8::]
 2023/05/30 09:22:31 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key_rings.rings["slz-slz-ring"]: Creating...
 2023/05/30 09:22:32 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_instance.cos["atracker-cos"]: Creation complete after 14s [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:1881fd65-7dbf-4993-bb05-c3c06dda0fc2::]
 2023/05/30 09:22:32 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_instance.cos["cos"]: Creation complete after 14s [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:a63be5ac-eada-4398-8ad0-c9eb6affc000::]
 2023/05/30 09:22:32 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_key.key["cos-bind-key"]: Creating...
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["cos-cos-to-key-management"]: Creating...
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["cos-atracker-cos-to-key-management"]: Creating...
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["flow-logs-cos"]: Creating...
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["block-storage"]: Creating...
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["flow-logs-atracker-cos"]: Creating...
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["atracker-to-cos"]: Creating...
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key_rings.rings["slz-slz-ring"]: Creation complete after 2s [id=slz-slz-ring:keyRing:crn:v1:bluemix:public:kms:eu-gb:a/df3edcc619764557b81b55fe6a9d680d:73564112-7598-4858-9276-ae5adc3e97b8::]
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key.key["slz-vsi-volume-key"]: Creating...
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key.key["slz-key"]: Creating...
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["cos-cos-to-key-management"]: Creation complete after 1s [id=ba930be7-43d2-4efa-96fa-2b5d75a9769f]
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key.key["slz-atracker-key"]: Creating...
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["cos-atracker-cos-to-key-management"]: Creation complete after 1s [id=8389affa-5e5e-4df5-8713-ce1f318eba92]
 2023/05/30 09:22:33 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["flow-logs-cos"]: Creation complete after 1s [id=8cb97702-15a9-49a9-ad80-28789ca8cdff]
 2023/05/30 09:22:34 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["block-storage"]: Creation complete after 1s [id=7ed5ba80-a96e-4f83-bfa1-9707a8691766]
 2023/05/30 09:22:34 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["flow-logs-atracker-cos"]: Creation complete after 2s [id=62369fac-fa64-4f5d-b552-582e3796e9ec]
 2023/05/30 09:22:35 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key.key["slz-key"]: Creation complete after 1s [id=crn:v1:bluemix:public:kms:eu-gb:a/df3edcc619764557b81b55fe6a9d680d:73564112-7598-4858-9276-ae5adc3e97b8:key:b225949b-3e7a-408a-b9e3-a89bfd15488f]
 2023/05/30 09:22:35 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key.key["slz-atracker-key"]: Creation complete after 1s [id=crn:v1:bluemix:public:kms:eu-gb:a/df3edcc619764557b81b55fe6a9d680d:73564112-7598-4858-9276-ae5adc3e97b8:key:30b45305-399e-4e78-9993-eb52f484f6bb]
 2023/05/30 09:22:35 Terraform apply | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key.key["slz-vsi-volume-key"]: Creation complete after 1s [id=crn:v1:bluemix:public:kms:eu-gb:a/df3edcc619764557b81b55fe6a9d680d:73564112-7598-4858-9276-ae5adc3e97b8:key:561d45be-0fd1-466e-994f-248201ff3026]
 2023/05/30 09:22:35 Terraform apply | module.landing_zone.module.landing_zone.ibm_resource_key.key["cos-bind-key"]: Creation complete after 2s [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:1881fd65-7dbf-4993-bb05-c3c06dda0fc2:resource-key:d934bd35-55c1-441d-95ad-f07da9bcea1b]
 2023/05/30 09:22:37 Terraform apply | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["atracker-to-cos"]: Creation complete after 4s [id=9659f51a-ef58-40ec-98c4-caa6bfdbb463]
 2023/05/30 09:22:37 Terraform apply | module.landing_zone.module.landing_zone.time_sleep.wait_for_authorization_policy: Creating...
 2023/05/30 09:22:37 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc.vpc: Creating...
 2023/05/30 09:22:37 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_vpc.vpc: Creating...
 2023/05/30 09:22:37 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_vpc.vpc: Creating...
 2023/05/30 09:22:38 Terraform apply | module.landing_zone.module.landing_zone.ibm_tg_gateway.transit_gateway[0]: Still creating... [20s elapsed]
 2023/05/30 09:22:47 Terraform apply | module.landing_zone.module.landing_zone.time_sleep.wait_for_authorization_policy: Still creating... [10s elapsed]
 2023/05/30 09:22:47 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc.vpc: Still creating... [10s elapsed]
 2023/05/30 09:22:47 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_vpc.vpc: Still creating... [10s elapsed]
 2023/05/30 09:22:47 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_vpc.vpc: Still creating... [10s elapsed]
 2023/05/30 09:22:48 Terraform apply | module.landing_zone.module.landing_zone.ibm_tg_gateway.transit_gateway[0]: Still creating... [30s elapsed]
 2023/05/30 09:22:51 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_vpc.vpc: Creation complete after 13s [id=r018-6a04c1dd-bc34-45f5-8ad8-7608cda5ca3b]
 2023/05/30 09:22:51 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_public_gateway.gateway["zone-1"]: Creating...
 2023/05/30 09:22:52 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc.vpc: Creation complete after 14s [id=r018-a6b2f993-e9a6-4993-896e-56f528b63992]
 2023/05/30 09:22:52 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_vpc.vpc: Creation complete after 14s [id=r018-a4c204fa-026c-4410-9212-7b7f3a251e35]
 2023/05/30 09:22:57 Terraform apply | module.landing_zone.module.landing_zone.time_sleep.wait_for_authorization_policy: Still creating... [20s elapsed]
 2023/05/30 09:22:58 Terraform apply | module.landing_zone.module.landing_zone.ibm_tg_gateway.transit_gateway[0]: Still creating... [40s elapsed]
 2023/05/30 09:23:00 Terraform apply | module.landing_zone.module.landing_zone.ibm_tg_gateway.transit_gateway[0]: Creation complete after 42s [id=1d33ac5d-1f60-4fb4-9c0f-97f0eddf8755]
 2023/05/30 09:23:01 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_public_gateway.gateway["zone-1"]: Still creating... [10s elapsed]
 2023/05/30 09:23:03 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_public_gateway.gateway["zone-1"]: Creation complete after 13s [id=r018-082e90d3-eb9e-4bb2-a103-d9119afc6ccc]
 2023/05/30 09:23:03 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc_address_prefix.subnet_prefix["te-management-vpe-zone-1"]: Creating...
 2023/05/30 09:23:03 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc_address_prefix.subnet_prefix["te-management-vsi-zone-1"]: Creating...
 2023/05/30 09:23:03 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_vpc_address_prefix.subnet_prefix["te-edge-vsi-zone-1"]: Creating...
 2023/05/30 09:23:03 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_vpc_address_prefix.subnet_prefix["te-workload-vsi-zone-1"]: Creating...
 2023/05/30 09:23:03 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc_address_prefix.subnet_prefix["te-management-vpn-zone-1"]: Creating...
 2023/05/30 09:23:03 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_vpc_address_prefix.subnet_prefix["te-workload-vpe-zone-1"]: Creating...
 2023/05/30 09:23:03 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_vpc_address_prefix.subnet_prefix["te-edge-vpe-zone-1"]: Creating...
 2023/05/30 09:23:05 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_vpc_address_prefix.subnet_prefix["te-edge-vsi-zone-1"]: Creation complete after 1s [id=r018-6a04c1dd-bc34-45f5-8ad8-7608cda5ca3b/r018-afcb6490-f964-4644-a432-3f0d18f368d5]
 2023/05/30 09:23:06 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc_address_prefix.subnet_prefix["te-management-vpe-zone-1"]: Creation complete after 2s [id=r018-a6b2f993-e9a6-4993-896e-56f528b63992/r018-f1403fe5-9473-4709-bbde-04c4b3abcf46]
 2023/05/30 09:23:06 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_vpc_address_prefix.subnet_prefix["te-workload-vsi-zone-1"]: Creation complete after 3s [id=r018-a4c204fa-026c-4410-9212-7b7f3a251e35/r018-755d4d7d-fe75-45e0-b652-15a6f35d7e93]
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_vpc_address_prefix.subnet_prefix["te-edge-vpe-zone-1"]: Creation complete after 3s [id=r018-6a04c1dd-bc34-45f5-8ad8-7608cda5ca3b/r018-db6ed661-7dfa-43b2-89eb-71b4d7a4a703]
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Reading...
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc_address_prefix.subnet_prefix["te-management-vsi-zone-1"]: Creation complete after 3s [id=r018-a6b2f993-e9a6-4993-896e-56f528b63992/r018-0d5bc1ec-e3fe-4bb6-8fc4-141bc8b2d41e]
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.time_sleep.wait_for_authorization_policy: Still creating... [30s elapsed]
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.time_sleep.wait_for_authorization_policy: Creation complete after 30s [id=2023-05-30T09:23:07Z]
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Read complete after 1s [id=2023-05-30 09:23:07.616551608 +0000 UTC]
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["edge-bucket"]: Creating...
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["atracker-bucket"]: Creating...
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["workload-bucket"]: Creating...
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["management-bucket"]: Creating...
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_vpc_address_prefix.subnet_prefix["te-workload-vpe-zone-1"]: Creation complete after 4s [id=r018-a4c204fa-026c-4410-9212-7b7f3a251e35/r018-bdbbdb5a-fd9d-48f8-ba79-a2a96c54b4f1]
 2023/05/30 09:23:07 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Reading...
 2023/05/30 09:23:08 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Read complete after 0s [id=2023-05-30 09:23:08.103728138 +0000 UTC]
 2023/05/30 09:23:08 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc_address_prefix.subnet_prefix["te-management-vpn-zone-1"]: Creation complete after 4s [id=r018-a6b2f993-e9a6-4993-896e-56f528b63992/r018-1379056e-8706-45b2-ba8e-5a549c8ef6d2]
 2023/05/30 09:23:08 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Reading...
 2023/05/30 09:23:08 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Read complete after 0s [id=2023-05-30 09:23:08.498254691 +0000 UTC]
 2023/05/30 09:23:08 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_network_acl.network_acl["workload-acl"]: Creating...
 2023/05/30 09:23:09 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_network_acl.network_acl["edge-acl"]: Creating...
 2023/05/30 09:23:09 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_network_acl.network_acl["management-acl"]: Creating...
 2023/05/30 09:23:15 Terraform apply | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["atracker-bucket"]: Creation complete after 8s [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:1881fd65-7dbf-4993-bb05-c3c06dda0fc2:bucket:te-atracker-bucket-dj1tazk8:meta:rl:eu-gb:public]
 2023/05/30 09:23:15 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_network_acl.network_acl["workload-acl"]: Creation complete after 7s [id=r018-a845af5b-8422-4900-9010-11b15e6899eb]
 2023/05/30 09:23:15 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_subnet.subnet["te-workload-vsi-zone-1"]: Creating...
 2023/05/30 09:23:15 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_subnet.subnet["te-workload-vpe-zone-1"]: Creating...
 2023/05/30 09:23:16 Terraform apply | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["management-bucket"]: Creation complete after 8s [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:a63be5ac-eada-4398-8ad0-c9eb6affc000:bucket:te-management-bucket-dj1tazk8:meta:rl:eu-gb:public]
 2023/05/30 09:23:16 Terraform apply | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["edge-bucket"]: Creation complete after 9s [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:a63be5ac-eada-4398-8ad0-c9eb6affc000:bucket:te-edge-bucket-dj1tazk8:meta:rl:eu-gb:public]
 2023/05/30 09:23:17 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_network_acl.network_acl["edge-acl"]: Creation complete after 8s [id=r018-03e44e08-1415-44ed-8f16-ddb7416937c2]
 2023/05/30 09:23:17 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_subnet.subnet["te-edge-vpe-zone-1"]: Creating...
 2023/05/30 09:23:17 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_subnet.subnet["te-edge-vsi-zone-1"]: Creating...
 2023/05/30 09:23:17 Terraform apply | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["workload-bucket"]: Still creating... [10s elapsed]
 2023/05/30 09:23:19 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_network_acl.network_acl["management-acl"]: Still creating... [10s elapsed]
 2023/05/30 09:23:19 Terraform apply | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["workload-bucket"]: Creation complete after 12s [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:a63be5ac-eada-4398-8ad0-c9eb6affc000:bucket:te-workload-bucket-dj1tazk8:meta:rl:eu-gb:public]
 2023/05/30 09:23:19 Terraform apply | module.landing_zone.module.landing_zone.ibm_atracker_target.atracker_target[0]: Creating...
 2023/05/30 09:23:25 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_subnet.subnet["te-workload-vsi-zone-1"]: Still creating... [10s elapsed]
 2023/05/30 09:23:25 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_subnet.subnet["te-workload-vpe-zone-1"]: Still creating... [10s elapsed]
 2023/05/30 09:23:27 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_subnet.subnet["te-edge-vpe-zone-1"]: Still creating... [10s elapsed]
 2023/05/30 09:23:27 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_subnet.subnet["te-edge-vsi-zone-1"]: Still creating... [10s elapsed]
 2023/05/30 09:23:28 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_subnet.subnet["te-workload-vsi-zone-1"]: Creation complete after 12s [id=0787-8ac1fb74-7002-45d9-bcfb-c05d99341a84]
 2023/05/30 09:23:28 Terraform apply | module.landing_zone.module.landing_zone.ibm_atracker_target.atracker_target[0]: Creation complete after 8s [id=7571c5a7-1c65-41f8-a131-320fc91f8eae]
 2023/05/30 09:23:28 Terraform apply | module.landing_zone.module.landing_zone.ibm_atracker_route.atracker_route[0]: Creating...
 2023/05/30 09:23:29 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_network_acl.network_acl["management-acl"]: Still creating... [20s elapsed]
 2023/05/30 09:23:29 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_subnet.subnet["te-edge-vpe-zone-1"]: Creation complete after 12s [id=0787-d228ce32-f7e2-47dd-b85d-2de999da3e8c]
 2023/05/30 09:23:32 Terraform apply | module.landing_zone.module.landing_zone.ibm_atracker_route.atracker_route[0]: Creation complete after 5s [id=63f7d0cd-89fe-4b7c-a34f-6212e54b9eac]
 2023/05/30 09:23:35 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_network_acl.network_acl["management-acl"]: Creation complete after 26s [id=r018-bee21246-19d0-493b-9928-ed0eae27f650]
 2023/05/30 09:23:35 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_subnet.subnet["te-management-vpe-zone-1"]: Creating...
 2023/05/30 09:23:35 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_subnet.subnet["te-management-vpn-zone-1"]: Creating...
 2023/05/30 09:23:35 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_subnet.subnet["te-management-vsi-zone-1"]: Creating...
 2023/05/30 09:23:35 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_subnet.subnet["te-workload-vpe-zone-1"]: Still creating... [20s elapsed]
 2023/05/30 09:23:37 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_subnet.subnet["te-edge-vsi-zone-1"]: Still creating... [20s elapsed]
 2023/05/30 09:23:40 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_subnet.subnet["te-workload-vpe-zone-1"]: Creation complete after 24s [id=0787-367b9dcd-9f8e-4602-ad22-bf60c6b42c51]
 2023/05/30 09:23:42 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_subnet.subnet["te-edge-vsi-zone-1"]: Creation complete after 25s [id=0787-77bd5680-1fd0-41c0-ad3c-0e9f77215dcd]
 2023/05/30 09:23:45 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_subnet.subnet["te-management-vpn-zone-1"]: Still creating... [10s elapsed]
 2023/05/30 09:23:45 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_subnet.subnet["te-management-vsi-zone-1"]: Still creating... [10s elapsed]
 2023/05/30 09:23:45 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_subnet.subnet["te-management-vpe-zone-1"]: Still creating... [10s elapsed]
 2023/05/30 09:23:48 Terraform apply | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_subnet.subnet["te-management-vpn-zone-1"]: Creation complete after 12s [id=0787-4080edce-1647-4340-bc8d-9594d81bfb24]
 2023/05/30 09:23:54 Killing the Command
 2023/05/30 09:23:54 Command Killed

Terraform destroy

2023/05/30 09:33:06 Terraform destroy | module.landing_zone.module.landing_zone.random_string.random_cos_suffix: Refreshing state... [id=dj1tazk8]
 2023/05/30 09:33:06 Terraform destroy | module.landing_zone.data.external.format_output: Reading...
 2023/05/30 09:33:08 Terraform destroy | module.landing_zone.data.external.format_output: Read complete after 1s [id=-]
 2023/05/30 09:33:10 Terraform destroy | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-management-rg"]: Refreshing state... [id=6610a13eb8384e6098094c99f55d33c0]
 2023/05/30 09:33:10 Terraform destroy | module.landing_zone.module.landing_zone.data.ibm_is_image.image["te-inet-svs"]: Reading...
 2023/05/30 09:33:10 Terraform destroy | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-workload-rg"]: Refreshing state... [id=5ae4e48d27514877abf7e5455cbe1e1a]
 2023/05/30 09:33:10 Terraform destroy | module.landing_zone.module.landing_zone.data.ibm_is_image.image["te-private-svs"]: Reading...
 2023/05/30 09:33:10 Terraform destroy | module.landing_zone.module.landing_zone.data.ibm_is_image.image["te-jump-box"]: Reading...
 2023/05/30 09:33:10 Terraform destroy | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-service-rg"]: Refreshing state... [id=34325b1e153343aba0b4367de7688efb]
 2023/05/30 09:33:10 Terraform destroy | module.landing_zone.module.landing_zone.ibm_resource_group.resource_groups["slz-edge-rg"]: Refreshing state... [id=cf0da4798fdf45c3806cd673616cf3b0]
 2023/05/30 09:33:10 Terraform destroy | module.landing_zone.module.landing_zone.data.ibm_container_cluster_versions.cluster_versions: Reading...
 2023/05/30 09:33:11 Terraform destroy | module.landing_zone.module.landing_zone.data.ibm_container_cluster_versions.cluster_versions: Read complete after 0s [id=2023-05-30 09:33:11.018509515 +0000 UTC]
 2023/05/30 09:33:11 Terraform destroy | module.landing_zone.module.landing_zone.data.ibm_is_image.image["te-jump-box"]: Read complete after 0s [id=r018-8391877f-6371-44d3-aaba-09e887169d1d]
 2023/05/30 09:33:11 Terraform destroy | module.landing_zone.module.landing_zone.ibm_tg_gateway.transit_gateway[0]: Refreshing state... [id=1d33ac5d-1f60-4fb4-9c0f-97f0eddf8755]
 2023/05/30 09:33:11 Terraform destroy | module.landing_zone.module.landing_zone.ibm_resource_instance.cos["cos"]: Refreshing state... [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:a63be5ac-eada-4398-8ad0-c9eb6affc000::]
 2023/05/30 09:33:11 Terraform destroy | module.landing_zone.module.landing_zone.data.ibm_is_image.image["te-private-svs"]: Read complete after 1s [id=r018-8391877f-6371-44d3-aaba-09e887169d1d]
 2023/05/30 09:33:11 Terraform destroy | module.landing_zone.module.landing_zone.ibm_resource_instance.cos["atracker-cos"]: Refreshing state... [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:1881fd65-7dbf-4993-bb05-c3c06dda0fc2::]
 2023/05/30 09:33:11 Terraform destroy | module.landing_zone.module.landing_zone.module.ssh_keys.ibm_is_ssh_key.ssh_key["ssh-key"]: Refreshing state... [id=r018-4e85c8b7-72ab-4936-a166-b4f516c68cbf]
 2023/05/30 09:33:11 Terraform destroy | module.landing_zone.module.landing_zone.data.ibm_is_image.image["te-inet-svs"]: Read complete after 2s [id=r018-8391877f-6371-44d3-aaba-09e887169d1d]
 2023/05/30 09:33:11 Terraform destroy | module.landing_zone.module.landing_zone.module.key_management.ibm_resource_instance.kms[0]: Refreshing state... [id=crn:v1:bluemix:public:kms:eu-gb:a/df3edcc619764557b81b55fe6a9d680d:73564112-7598-4858-9276-ae5adc3e97b8::]
 2023/05/30 09:33:13 Terraform destroy | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key_rings.rings["slz-slz-ring"]: Refreshing state... [id=slz-slz-ring:keyRing:crn:v1:bluemix:public:kms:eu-gb:a/df3edcc619764557b81b55fe6a9d680d:73564112-7598-4858-9276-ae5adc3e97b8::]
 2023/05/30 09:33:13 Terraform destroy | module.landing_zone.module.landing_zone.ibm_resource_key.key["cos-bind-key"]: Refreshing state... [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:1881fd65-7dbf-4993-bb05-c3c06dda0fc2:resource-key:d934bd35-55c1-441d-95ad-f07da9bcea1b]
 2023/05/30 09:33:13 Terraform destroy | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["atracker-to-cos"]: Refreshing state... [id=9659f51a-ef58-40ec-98c4-caa6bfdbb463]
 2023/05/30 09:33:13 Terraform destroy | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["block-storage"]: Refreshing state... [id=7ed5ba80-a96e-4f83-bfa1-9707a8691766]
 2023/05/30 09:33:13 Terraform destroy | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["flow-logs-atracker-cos"]: Refreshing state... [id=62369fac-fa64-4f5d-b552-582e3796e9ec]
 2023/05/30 09:33:13 Terraform destroy | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["flow-logs-cos"]: Refreshing state... [id=8cb97702-15a9-49a9-ad80-28789ca8cdff]
 2023/05/30 09:33:13 Terraform destroy | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["cos-atracker-cos-to-key-management"]: Refreshing state... [id=8389affa-5e5e-4df5-8713-ce1f318eba92]
 2023/05/30 09:33:13 Terraform destroy | module.landing_zone.module.landing_zone.ibm_iam_authorization_policy.policy["cos-cos-to-key-management"]: Refreshing state... [id=ba930be7-43d2-4efa-96fa-2b5d75a9769f]
 2023/05/30 09:33:13 Terraform destroy | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key.key["slz-key"]: Refreshing state... [id=crn:v1:bluemix:public:kms:eu-gb:a/df3edcc619764557b81b55fe6a9d680d:73564112-7598-4858-9276-ae5adc3e97b8:key:b225949b-3e7a-408a-b9e3-a89bfd15488f]
 2023/05/30 09:33:13 Terraform destroy | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key.key["slz-atracker-key"]: Refreshing state... [id=crn:v1:bluemix:public:kms:eu-gb:a/df3edcc619764557b81b55fe6a9d680d:73564112-7598-4858-9276-ae5adc3e97b8:key:30b45305-399e-4e78-9993-eb52f484f6bb]
 2023/05/30 09:33:14 Terraform destroy | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key.key["slz-vsi-volume-key"]: Refreshing state... [id=crn:v1:bluemix:public:kms:eu-gb:a/df3edcc619764557b81b55fe6a9d680d:73564112-7598-4858-9276-ae5adc3e97b8:key:561d45be-0fd1-466e-994f-248201ff3026]
 2023/05/30 09:33:19 Terraform destroy | module.landing_zone.module.landing_zone.time_sleep.wait_for_authorization_policy: Refreshing state... [id=2023-05-30T09:23:07Z]
 2023/05/30 09:33:20 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_vpc.vpc: Refreshing state... [id=r018-6a04c1dd-bc34-45f5-8ad8-7608cda5ca3b]
 2023/05/30 09:33:20 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc.vpc: Refreshing state... [id=r018-a6b2f993-e9a6-4993-896e-56f528b63992]
 2023/05/30 09:33:20 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_vpc.vpc: Refreshing state... [id=r018-a4c204fa-026c-4410-9212-7b7f3a251e35]
 2023/05/30 09:33:20 Terraform destroy | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["edge-bucket"]: Refreshing state... [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:a63be5ac-eada-4398-8ad0-c9eb6affc000:bucket:te-edge-bucket-dj1tazk8:meta:rl:eu-gb:public]
 2023/05/30 09:33:20 Terraform destroy | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["workload-bucket"]: Refreshing state... [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:a63be5ac-eada-4398-8ad0-c9eb6affc000:bucket:te-workload-bucket-dj1tazk8:meta:rl:eu-gb:public]
 2023/05/30 09:33:20 Terraform destroy | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["atracker-bucket"]: Refreshing state... [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:1881fd65-7dbf-4993-bb05-c3c06dda0fc2:bucket:te-atracker-bucket-dj1tazk8:meta:rl:eu-gb:public]
 2023/05/30 09:33:20 Terraform destroy | module.landing_zone.module.landing_zone.ibm_cos_bucket.buckets["management-bucket"]: Refreshing state... [id=crn:v1:bluemix:public:cloud-object-storage:global:a/df3edcc619764557b81b55fe6a9d680d:a63be5ac-eada-4398-8ad0-c9eb6affc000:bucket:te-management-bucket-dj1tazk8:meta:rl:eu-gb:public]
 2023/05/30 09:33:24 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_public_gateway.gateway["zone-1"]: Refreshing state... [id=r018-082e90d3-eb9e-4bb2-a103-d9119afc6ccc]
 2023/05/30 09:33:24 Terraform destroy | module.landing_zone.module.landing_zone.ibm_atracker_target.atracker_target[0]: Refreshing state... [id=7571c5a7-1c65-41f8-a131-320fc91f8eae]
 2023/05/30 09:33:25 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_vpc_address_prefix.subnet_prefix["te-workload-vpe-zone-1"]: Refreshing state... [id=r018-a4c204fa-026c-4410-9212-7b7f3a251e35/r018-bdbbdb5a-fd9d-48f8-ba79-a2a96c54b4f1]
 2023/05/30 09:33:25 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc_address_prefix.subnet_prefix["te-management-vpn-zone-1"]: Refreshing state... [id=r018-a6b2f993-e9a6-4993-896e-56f528b63992/r018-1379056e-8706-45b2-ba8e-5a549c8ef6d2]
 2023/05/30 09:33:25 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc_address_prefix.subnet_prefix["te-management-vpe-zone-1"]: Refreshing state... [id=r018-a6b2f993-e9a6-4993-896e-56f528b63992/r018-f1403fe5-9473-4709-bbde-04c4b3abcf46]
 2023/05/30 09:33:25 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_vpc_address_prefix.subnet_prefix["te-edge-vpe-zone-1"]: Refreshing state... [id=r018-6a04c1dd-bc34-45f5-8ad8-7608cda5ca3b/r018-db6ed661-7dfa-43b2-89eb-71b4d7a4a703]
 2023/05/30 09:33:25 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_vpc_address_prefix.subnet_prefix["te-management-vsi-zone-1"]: Refreshing state... [id=r018-a6b2f993-e9a6-4993-896e-56f528b63992/r018-0d5bc1ec-e3fe-4bb6-8fc4-141bc8b2d41e]
 2023/05/30 09:33:25 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_vpc_address_prefix.subnet_prefix["te-edge-vsi-zone-1"]: Refreshing state... [id=r018-6a04c1dd-bc34-45f5-8ad8-7608cda5ca3b/r018-afcb6490-f964-4644-a432-3f0d18f368d5]
 2023/05/30 09:33:25 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_vpc_address_prefix.subnet_prefix["te-workload-vsi-zone-1"]: Refreshing state... [id=r018-a4c204fa-026c-4410-9212-7b7f3a251e35/r018-755d4d7d-fe75-45e0-b652-15a6f35d7e93]
 2023/05/30 09:33:26 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["management"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Reading...
 2023/05/30 09:33:26 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["edge"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Reading...
 2023/05/30 09:33:26 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["workload"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Reading...
 2023/05/30 09:33:26 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["workload"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Read complete after 0s [id=2023-05-30 09:33:26.774222011 +0000 UTC]
 2023/05/30 09:33:26 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["management"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Read complete after 0s [id=2023-05-30 09:33:26.792407457 +0000 UTC]
 2023/05/30 09:33:26 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["edge"].data.ibm_is_vpc_address_prefixes.get_address_prefixes: Read complete after 0s [id=2023-05-30 09:33:26.820487619 +0000 UTC]
 2023/05/30 09:33:27 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_network_acl.network_acl["workload-acl"]: Refreshing state... [id=r018-a845af5b-8422-4900-9010-11b15e6899eb]
 2023/05/30 09:33:27 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_network_acl.network_acl["edge-acl"]: Refreshing state... [id=r018-03e44e08-1415-44ed-8f16-ddb7416937c2]
 2023/05/30 09:33:27 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_network_acl.network_acl["management-acl"]: Refreshing state... [id=r018-bee21246-19d0-493b-9928-ed0eae27f650]
 2023/05/30 09:33:30 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_subnet.subnet["te-workload-vpe-zone-1"]: Refreshing state... [id=0787-367b9dcd-9f8e-4602-ad22-bf60c6b42c51]
 2023/05/30 09:33:30 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["workload"].ibm_is_subnet.subnet["te-workload-vsi-zone-1"]: Refreshing state... [id=0787-8ac1fb74-7002-45d9-bcfb-c05d99341a84]
 2023/05/30 09:33:30 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_subnet.subnet["te-edge-vsi-zone-1"]: Refreshing state... [id=0787-77bd5680-1fd0-41c0-ad3c-0e9f77215dcd]
 2023/05/30 09:33:30 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["edge"].ibm_is_subnet.subnet["te-edge-vpe-zone-1"]: Refreshing state... [id=0787-d228ce32-f7e2-47dd-b85d-2de999da3e8c]
 2023/05/30 09:33:30 Terraform destroy | module.landing_zone.module.landing_zone.module.vpc["management"].ibm_is_subnet.subnet["te-management-vpn-zone-1"]: Refreshing state... [id=0787-4080edce-1647-4340-bc8d-9594d81bfb24]
 2023/05/30 09:33:33 Terraform destroy | module.landing_zone.module.landing_zone.ibm_atracker_route.atracker_route[0]: Refreshing state... [id=63f7d0cd-89fe-4b7c-a34f-6212e54b9eac]
 2023/05/30 09:33:50 Terraform destroy | 
 2023/05/30 09:33:50 Terraform destroy | Error: Unsupported attribute
 2023/05/30 09:33:50 Terraform destroy | 
 2023/05/30 09:33:50 Terraform destroy |   on .terraform/modules/landing_zone/dynamic_values/config_modules/vsi/vsi.tf line 20, in module "vsi_subnets":
 2023/05/30 09:33:50 Terraform destroy |   20:   subnet_zone_list = var.vpc_modules[each.value.vpc_name].subnet_zone_list
 2023/05/30 09:33:50 Terraform destroy |     ├────────────────
 2023/05/30 09:33:50 Terraform destroy |     │ each.value.vpc_name is "management"
 2023/05/30 09:33:50 Terraform destroy |     │ var.vpc_modules is object with 3 attributes
 2023/05/30 09:33:50 Terraform destroy | 
 2023/05/30 09:33:50 Terraform destroy | This object does not have an attribute named "subnet_zone_list".
 2023/05/30 09:33:50 Terraform DESTROY error: Terraform DESTROY errorexit status 1
 2023/05/30 09:33:50 Could not execute job: Error : Terraform DESTROY errorexit status 1

other error when terraform destroy fails:

[id=crn:v1:bluemix:public:kms:au-syd:a/df3edcc619764557b81b55fe6a9d680d:decc1aa9-32f6-400a-b8b7-35954e03b50d:key:9f79907d-49fb-4ea1-8719-74df30917e8e]
 2023/05/30 08:08:24 Terraform destroy | module.landing_zone.module.landing_zone.module.key_management.ibm_kms_key.key["slz-vsi-volume-key"]: Refreshing state... [id=crn:v1:bluemix:public:kms:au-syd:a/df3edcc619764557b81b55fe6a9d680d:decc1aa9-32f6-400a-b8b7-35954e03b50d:key:9d050c8d-021b-45b1-88b9-1101fd4d0693]
 2023/05/30 08:08:37 Terraform destroy | 
 2023/05/30 08:08:37 Terraform destroy | Error: Unsupported attribute
 2023/05/30 08:08:37 Terraform destroy | 
 2023/05/30 08:08:37 Terraform destroy |   on .terraform/modules/landing_zone/dynamic_values/config_modules/vsi/vsi.tf line 20, in module "vsi_subnets":
 2023/05/30 08:08:37 Terraform destroy |   20:   subnet_zone_list = var.vpc_modules[each.value.vpc_name].subnet_zone_list
 2023/05/30 08:08:37 Terraform destroy |     ├────────────────
 2023/05/30 08:08:37 Terraform destroy |     │ each.value.vpc_name is "workload"
 2023/05/30 08:08:37 Terraform destroy |     │ var.vpc_modules is object with 3 attributes
 2023/05/30 08:08:37 Terraform destroy | 
 2023/05/30 08:08:37 Terraform destroy | This object does not have an attribute named "subnet_zone_list".
 2023/05/30 08:08:37 Terraform destroy | 
 2023/05/30 08:08:37 Terraform destroy | Error: Unsupported attribute
 2023/05/30 08:08:37 Terraform destroy | 
 2023/05/30 08:08:37 Terraform destroy |   on .terraform/modules/landing_zone/dynamic_values/config_modules/vsi/vsi.tf line 20, in module "vsi_subnets":
 2023/05/30 08:08:37 Terraform destroy |   20:   subnet_zone_list = var.vpc_modules[each.value.vpc_name].subnet_zone_list
 2023/05/30 08:08:37 Terraform destroy |     ├────────────────
 2023/05/30 08:08:37 Terraform destroy |     │ each.value.vpc_name is "edge"
 2023/05/30 08:08:37 Terraform destroy |     │ var.vpc_modules is object with 3 attributes
 2023/05/30 08:08:37 Terraform destroy | 
 2023/05/30 08:08:37 Terraform destroy | This object does not have an attribute named "subnet_zone_list".
 2023/05/30 08:08:37 Terraform destroy | 
 2023/05/30 08:08:37 Terraform destroy | Error: Unsupported attribute
 2023/05/30 08:08:37 Terraform destroy | 
 2023/05/30 08:08:37 Terraform destroy |   on .terraform/modules/landing_zone/dynamic_values/config_modules/vsi/vsi.tf line 20, in module "vsi_subnets":
 2023/05/30 08:08:37 Terraform destroy |   20:   subnet_zone_list = var.vpc_modules[each.value.vpc_name].subnet_zone_list
 2023/05/30 08:08:37 Terraform destroy |     ├────────────────
 2023/05/30 08:08:37 Terraform destroy |     │ each.value.vpc_name is "management"
 2023/05/30 08:08:37 Terraform destroy |     │ var.vpc_modules is object with 3 attributes
 2023/05/30 08:08:37 Terraform destroy | 
 2023/05/30 08:08:37 Terraform destroy | This object does not have an attribute named "subnet_zone_list".
 2023/05/30 08:08:37 [1m[31mTerraform DESTROY error: Terraform DESTROY errorexit status 1[39m[0m
 2023/05/30 08:08:37 [1m[31mCould not execute job: Error : Terraform DESTROY errorexit status 1[39m[0m
surajsbharadwaj commented 1 year ago

https://github.com/terraform-ibm-modules/terraform-ibm-powervs-infrastructure/actions/runs/5124506547/jobs/9216772908

toddgiguere commented 1 year ago

Root cause has been identified, currently working on a fix.

This issue can happen when the VPC deployment is incomplete or missing elements, such as subnets. This will cause the terraform module to have missing or incomplete output attributes that are referenced in dynamic_values module. Since these references will happen at plan execution, the destroy of remaining resources will fail and be stuck in that state.

toddgiguere commented 1 year ago

After analysis and trial, we have determined that the fix for this will not be simple. We will be evaluating solutions, sizing and prioritizing, in order to have a permanent solution.

TEMPORARY WORKAROUND: We did discover a workaround in case you find yourself in a situation where you cannot destroy resources:

The main cause for the error is due to the fact that certain resources, like VSI instances, are assigned to other VPC resources (such as subnets) that are now non-existent. In order to get past this issue you can "unassign" those resources by using the override_json_string input parameter when executing a terraform destroy. This will remove the association with certain elements and allow the mapping process to continue. It appears that it will not affect the actual destroy (mapping is not really used for destroy phase).

EXAMPLE: If you see a situation like above, where the "dynamic_values/config_modules/vsi" is complaining about non-existent "subnet_zone_list", this means that in the configuration (default or override) there are VSI instances mapped to subnets that do not exist. To get around this situation you could remove all VSI mapping to subnets by supplying an empty array for VSI configuration:

export TF_VAR_override_json_string='{"vsi": []}'

This will skip the problem of mapping the VSI list to subnet IDs, and let the destroy operation complete.

NOTE: while this workaround works fine for destroy, since the destroy operation does not use these mappings, I don't know if I would recommend to continue an unfinished terraform apply by using this method, as you may wind up with certain resources incorrectly configured.

ocofaigh commented 1 year ago

This has been documented in the known issues with a workaround -> https://cloud.ibm.com/docs/secure-infrastructure-vpc?topic=secure-infrastructure-vpc-known-issues#ki-unsupported-attribute

Going to close this issue