Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zone name to data source vpc.subnets outputs #1450

Closed
pauljegouic opened this issue May 15, 2020 · 2 comments
Closed

Add zone name to data source vpc.subnets outputs #1450

pauljegouic opened this issue May 15, 2020 · 2 comments
Assignees

Comments

@pauljegouic
Copy link

Hi there,

This is a feature request about adding some information required by other resources in data ibm_is_vpc resource.

My suggestion is to add the zone_name to the subnet list since it is needed by resource ibm_container_vpc_cluster.

We would have such outputs:

debug = {
  "classic_access" = false
  "crn" = "XXX4086-4534-b01a-93e0345626c2"
  "cse_source_addresses" = [
    {
      "address" = "10.249.165.XXX"
      "zone_name" = "eu-de-3"
    },
    {
      "address" = "10.249.160.XXX"
      "zone_name" = "eu-de-2"
    },
    {
      "address" = "10.249.159.XXX"
      "zone_name" = "eu-de-1"
    },
  ]
  "default_network_acl" = "1e51XXXXXX58c1a"
  "id" = "156515d7-4086-4534-b01a-93e0345626c2"
  "name" = "vpc1"
  "resource_controller_url" = "https://cloud.ibm.com/vpc/network/vpcs"
  "resource_crn" = "crn:v1:bluemix:public:is:eu-de:a/XXXX::vpc:XXXXX-XXXX-4534-b01a-XXXX"
  "resource_group" = "XXXXX"
  "resource_group_name" = ""
  "resource_name" = "vpc1"
  "resource_status" = "available"
  "status" = "available"
  "subnets" = [
    {
      "available_ipv4_address_count" = 11
      "id" = "f9XXXXXXXXXxx2"
      "name" = "public-b"
      "status" = "available"
      "total_ipv4_address_count" = 16
      "zone" = "eu-de-2"
    },
    {
      "available_ipv4_address_count" = 11
      "id" = "bc1XXXXXXXX215"
      "name" = "public-a"
      "status" = "available"
      "total_ipv4_address_count" = 16 
      "zone" = "eu-de-1"
    },
    {
      "available_ipv4_address_count" = 59
      "id" = "76aXXXXXXX701a12"
      "name" = "private-b"
      "status" = "available"
      "total_ipv4_address_count" = 64
      "zone" = "eu-de-2"
    },
    {
      "available_ipv4_address_count" = 59
      "id" = "895XXXXXXXX34"
      "name" = "private-a"
      "status" = "available"
      "total_ipv4_address_count" = 64
      "zone" = "eu-de-1"
    },
  ]
}

Thanks in advance

VaishnaviGopal added a commit to VaishnaviGopal/terraform-provider-ibm that referenced this issue Jun 2, 2020
hkantare pushed a commit that referenced this issue Jun 3, 2020
@hkantare
Copy link
Collaborator

@hkantare
Copy link
Collaborator

closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants