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

VPC ID Filter is added when Subnet Name is specified #4892

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

SunithaGudisagarIBM1
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #4872

Output from acceptance testing:

resource "ibm_is_vpc" "testacc_vpc" {
	name = "sunitha-vpc"
}

resource "ibm_is_subnet" "testacc_subnet" {
	name = "sunitha-subnet"
	vpc = "${ibm_is_vpc.testacc_vpc.id}"
	zone = "us-south-1"
	total_ipv4_address_count = 16
}
data "ibm_is_subnet" "ds_subnet" {
	identifier = "${ibm_is_subnet.testacc_subnet.id}"
}

data "ibm_is_subnet" "ds_subnet_name" {
  depends_on = [ ibm_is_subnet.testacc_subnet ]
	name =   "sunitha-subnet"
}

data "ibm_is_subnet" "ds_subnet_vpcid_subentname" {
  depends_on = [ ibm_is_subnet.testacc_subnet ]
  name =   "sunitha-subnet"
  vpc =  "${ibm_is_vpc.testacc_vpc.id}"
}
Screenshot 2023-10-24 at 9 14 37 PM Screenshot 2023-10-24 at 9 15 02 PM
	data "ibm_is_subnets" "ds_subnets_resource_group" {
		/* depends_on = [ibm_is_subnet.testacc_subnet] */
		/* vpc = ibm_is_vpc.testacc_vpc.id */
    vpc_name = "tfp-vpc"
    		/* resource_group = "11caaa983d9c4beb82690daab08717e9" */

	}
Screenshot 2023-10-30 at 12 01 31 PM

@hkantare hkantare merged commit 16d4748 into IBM-Cloud:master Nov 17, 2023
2 checks passed
@SunithaGudisagarIBM1 SunithaGudisagarIBM1 deleted the bugfix-is-subnet branch November 19, 2023 06:52
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

Successfully merging this pull request may close these issues.

ibm_is_subnet returns the incorrect subnet ID
2 participants