Skip to content

in case the deletion of a resource failed the provider says the destruction is complete #29

@fabiopax

Description

@fabiopax

see following sample version used is version = "0.1.1"

Terraform will perform the following actions:

arubacloud_blockstorage.boot_disk will be destroyed

  • resource "arubacloud_blockstorage" "boot_disk" {
    • billing_period = "Hour" -> null
    • bootable = true -> null
    • id = "699c4f5c9740e9daeda5d1b5" -> null
    • image = "LU22-001" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-boot-disk" -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • size_gb = 100 -> null
    • tags = [
      • "storage",
      • "boot",
      • "test",
        ] -> null
    • type = "Performance" -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Storage/blockStorages/699c4f5c9740e9daeda5d1b5" -> null
    • zone = "ITBG-1" -> null
      }

arubacloud_blockstorage.data_disk will be destroyed

  • resource "arubacloud_blockstorage" "data_disk" {
    • billing_period = "Hour" -> null
    • id = "699c4f589740e9daeda5d1b2" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-data-disk" -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • size_gb = 50 -> null
    • tags = [
      • "storage",
      • "data",
      • "test",
        ] -> null
    • type = "Standard" -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Storage/blockStorages/699c4f589740e9daeda5d1b2" -> null
    • zone = "ITBG-1" -> null
      }

arubacloud_cloudserver.test will be destroyed

  • resource "arubacloud_cloudserver" "test" {
    • id = "699c4fca4453f6f55406b730" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-cloudserver" -> null
    • network = {
      • elastic_ip_uri_ref = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/elasticIps/699c4f58a851081197ca3254" -> null
      • securitygroup_uri_refs = [
        • "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/vpcs/699c4f58a851081197ca3251/securityGroups/699c4f9ea851081197ca325e",
          ] -> null
      • subnet_uri_refs = [
        • "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/vpcs/699c4f58a851081197ca3251/subnets/699c4f9ea851081197ca325f",
          ] -> null
      • vpc_uri_ref = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/vpcs/699c4f58a851081197ca3251" -> null
        } -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • settings = {
      • flavor_name = "CSO4A8" -> null
      • key_pair_uri_ref = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Compute/keyPairs/699c4f584453f6f55406b728" -> null
      • user_data = (sensitive value) -> null
        } -> null
    • storage = {
      • boot_volume_uri_ref = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Storage/blockStorages/699c4f5c9740e9daeda5d1b5" -> null
        } -> null
    • tags = [
      • "compute",
      • "test",
        ] -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Compute/cloudServers/699c4fca4453f6f55406b730" -> null
    • zone = "ITBG-1" -> null
      }

arubacloud_elasticip.test will be destroyed

  • resource "arubacloud_elasticip" "test" {
    • address = "85.235.141.46" -> null
    • billing_period = "hourly" -> null
    • id = "699c4f58a851081197ca3254" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-elastic-ip" -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • tags = [
      • "public",
      • "test",
      • "updated",
        ] -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/elasticIps/699c4f58a851081197ca3254" -> null
      }

arubacloud_keypair.test will be destroyed

  • resource "arubacloud_keypair" "test" {
    • id = "699c4f584453f6f55406b728" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-keypair" -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Compute/keyPairs/699c4f584453f6f55406b728" -> null
    • value = (sensitive value) -> null
      }

arubacloud_project.test will be destroyed

  • resource "arubacloud_project" "test" {
    • description = "Project for testing Terraform provider" -> null
    • id = "699c4f565720ef9235e5a91f" -> null
    • name = "terraform-test-project" -> null
    • tags = [
      • "terraform",
      • "test",
        ] -> null
        }

arubacloud_securitygroup.test will be destroyed

  • resource "arubacloud_securitygroup" "test" {
    • id = "699c4f9ea851081197ca325e" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-security-group" -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • tags = [
      • "security",
      • "test",
      • "updated",
        ] -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/vpcs/699c4f58a851081197ca3251/securityGroups/699c4f9ea851081197ca325e" -> null
    • vpc_id = "699c4f58a851081197ca3251" -> null
      }

arubacloud_securityrule.default_egress will be destroyed

  • resource "arubacloud_securityrule" "default_egress" {
    • id = "699c4fada851081197ca3272" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-default-egress-rule" -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • properties = {
      • direction = "Egress" -> null
      • port = "*" -> null
      • protocol = "ANY" -> null
      • target = {
        • kind = "Ip" -> null
        • value = "0.0.0.0/0" -> null
          } -> null
          } -> null
    • security_group_id = "699c4f9ea851081197ca325e" -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/vpcs/699c4f58a851081197ca3251/securityGroups/699c4f9ea851081197ca325e/securityRules/699c4fada851081197ca3272" -> null
    • vpc_id = "699c4f58a851081197ca3251" -> null
      }

arubacloud_securityrule.ssh will be destroyed

  • resource "arubacloud_securityrule" "ssh" {
    • id = "699c4fada851081197ca3276" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-ssh-rule" -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • properties = {
      • direction = "Ingress" -> null
      • port = "22" -> null
      • protocol = "TCP" -> null
      • target = {
        • kind = "Ip" -> null
        • value = "0.0.0.0/0" -> null
          } -> null
          } -> null
    • security_group_id = "699c4f9ea851081197ca325e" -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/vpcs/699c4f58a851081197ca3251/securityGroups/699c4f9ea851081197ca325e/securityRules/699c4fada851081197ca3276" -> null
    • vpc_id = "699c4f58a851081197ca3251" -> null
      }

arubacloud_securityrule.test will be destroyed

  • resource "arubacloud_securityrule" "test" {
    • id = "699c4fada851081197ca3274" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-http-rule" -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • properties = {
      • direction = "Ingress" -> null
      • port = "80" -> null
      • protocol = "TCP" -> null
      • target = {
        • kind = "Ip" -> null
        • value = "0.0.0.0/0" -> null
          } -> null
          } -> null
    • security_group_id = "699c4f9ea851081197ca325e" -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/vpcs/699c4f58a851081197ca3251/securityGroups/699c4f9ea851081197ca325e/securityRules/699c4fada851081197ca3274" -> null
    • vpc_id = "699c4f58a851081197ca3251" -> null
      }

arubacloud_subnet.test will be destroyed

  • resource "arubacloud_subnet" "test" {
    • id = "699c4f9ea851081197ca325f" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-subnet" -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • tags = [
      • "network",
      • "test",
      • "updated",
        ] -> null
    • type = "Basic" -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/vpcs/699c4f58a851081197ca3251/subnets/699c4f9ea851081197ca325f" -> null
    • vpc_id = "699c4f58a851081197ca3251" -> null
      }

arubacloud_vpc.test will be destroyed

  • resource "arubacloud_vpc" "test" {
    • id = "699c4f58a851081197ca3251" -> null
    • location = "ITBG-Bergamo" -> null
    • name = "test-vpc-compute" -> null
    • project_id = "699c4f565720ef9235e5a91f" -> null
    • tags = [
      • "network",
      • "test",
        ] -> null
    • uri = "/projects/699c4f565720ef9235e5a91f/providers/Aruba.Network/vpcs/699c4f58a851081197ca3251" -> null
      }

Plan: 0 to add, 0 to change, 12 to destroy.

Changes to Outputs:

  • elastic_ip_address = "85.235.141.46" -> null
  • nginx_test_command = "curl http://85.235.141.46:80" -> null
  • nginx_url = "http://85.235.141.46" -> null
    arubacloud_blockstorage.data_disk: Destroying... [id=699c4f589740e9daeda5d1b2]
    arubacloud_cloudserver.test: Destroying... [id=699c4fca4453f6f55406b730]
    arubacloud_blockstorage.data_disk: Destruction complete after 0s
    arubacloud_cloudserver.test: Destruction complete after 0s

But in this case the deletion has failed

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions