We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
data ibm_is_instance is retrieving a wrong information:
data ibm_is_instance
tf file:
data ibm_is_instance zone-1-router { depends_on = [local.router_primary_network_interface_json] name = "${var.prefix}-zone-1-router" }
and the tfstate file shows:
"mode": "data", "type": "ibm_is_instance", "name": "zone-1-router", "provider": "provider.ibm", "instances": [ { "schema_version": 0, "attributes": { "boot_volume": [ { "device": "7295-3a5b9e23-138b-40d6-ac88-cd015760b948-wlkxm", "id": "7295-3a5b9e23-138b-40d6-ac88-cd015760b948", "name": "volume-attachment", "volume_crn": "crn:v1:staging:public:is:us-south-2:a/3771957022b64706b0dc1c92b5153c20::volume:r134-da9d72f5-95d8-46ab-97c9-d43fbae101a7", "volume_id": "r134-da9d72f5-95d8-46ab-97c9-d43fbae101a7", "volume_name": "causation-manhole-cabdriver-fruit" } ], "gpu": [], "id": "7295_a294ce26-f046-4c0c-9719-6cd2bec2b7dd", "image": "r134-ed3f775f-ad7e-4e37-ae62-7199b4988b00", "keys": [ { "id": "r134-783b3846-3460-49cc-960e-8940490254c3", "name": "prefix-test-public-key" } ], "memory": 4, "name": "prefix-bastion", "network_interfaces": [], "passphrase": null, "password": null, "primary_network_interface": [ { "id": "7295-fd14bc43-b892-48c3-9ff8-5b8cbd28ffbd", "name": "numbness-bring-simple-pure", "port_speed": 0, "primary_ipv4_address": "10.240.64.4", "security_groups": [ "r134-6b473878-44bb-41b4-bf39-d25d5933ba10" ], "subnet": "7295-46a98995-7a4d-4149-9675-c6976799e232" } ], "private_key": null, "profile": "cx2-2x4", "resource_controller_url": "https://test.cloud.ibm.com/vpc-ext/compute/vs", "resource_crn": "crn:v1:staging:public:is:us-south-2:a/3771957022b64706b0dc1c92b5153c20::instance:7295_a294ce26-f046-4c0c-9719-6cd2bec2b7dd", "resource_group": "dc4fd65963ed46a1b15e2e5663983ded", "resource_group_name": "Default", "resource_name": "prefix-bastion", "resource_status": "running", "status": "running", "tags": [], "vcpu": [ { "architecture": "amd64", "count": 2 } ], "volume_attachments": [ { "id": "7295-3a5b9e23-138b-40d6-ac88-cd015760b948", "name": "volume-attachment", "volume_crn": "crn:v1:staging:public:is:us-south-2:a/3771957022b64706b0dc1c92b5153c20::volume:r134-da9d72f5-95d8-46ab-97c9-d43fbae101a7", "volume_id": "r134-da9d72f5-95d8-46ab-97c9-d43fbae101a7", "volume_name": "causation-manhole-cabdriver-fruit" } ], "volumes": [], "vpc": "r134-f3d67b72-5d69-4e19-a356-aba7ca6c6407", "zone": "us-south-2" } } ] }, but I wanted to get the router instance, it retrieved the bastion instance. Doesn't it check the name before retrieving? Listing instances for generation 2 compute in resource group Default and region us-south under account SeungYeop Yang's Account as user seungyeop.yang+csi@mail.test.ibm.com... ID Name Status Address Floating IP Profile Image VPC Zone Resource group 7195_06d23f11-b8c9-42d2-90cd-b638fd67c0c8 prefix-rhel-0 running 10.240.1.4 - cx2-2x4 ibm-redhat-7-6-minimal-amd64-1 prefix-crvpc us-south-1 Default 7195_563b19e9-0a41-4b11-ae13-fbc767a7dc13 prefix-ubuntu-0 running 10.240.3.4 - cx2-2x4 ibm-ubuntu-18-04-1-minimal-amd64-2 prefix-crvpc us-south-1 Default 7195_a2751c30-f59f-4dc6-b45e-0ab86bf43b2a prefix-windows-0 running 10.240.2.2 - cx2-2x4 ibm-windows-server-2016-full-standard-amd64-3 prefix-crvpc us-south-1 Default 7195_16743bfa-5efa-49cf-869d-fb100ec82ec8 prefix-zone-1-router running 10.240.0.4 169.48.159.190 cx2-2x4 ibm-ubuntu-18-04-1-minimal-amd64-2 prefix-crvpc us-south-1 Default 7295_a294ce26-f046-4c0c-9719-6cd2bec2b7dd prefix-bastion running 10.240.64.4 169.47.81.21 cx2-2x4 ibm-ubuntu-18-04-1-minimal-amd64-2 prefix-crvpc us-south-2 Default root@a785655156ea:/system-tf-base/test/custom_route/basic#
The text was updated successfully, but these errors were encountered:
Fix issue IBM-Cloud#1801
a698352
Thanks @VaishnaviGopal !!
Sorry, something went wrong.
Fixed in latest release https://github.com/IBM-Cloud/terraform-provider-ibm/releases/tag/v1.11.1
VaishnaviGopal
No branches or pull requests
data ibm_is_instance
is retrieving a wrong information:tf file:
and the tfstate file shows:
The text was updated successfully, but these errors were encountered: