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

added filters in vpc service data sources #4119

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

deepaksibm
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 #0000

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

@deepaksibm
Copy link
Contributor Author

resource "ibm_is_vpc" "vpc1" {
  name = "my-test-vpc-1"
  # resource_group = "db00134d32c14135a20c2ca5a13d7d72" # CDL Group
}
data "ibm_is_vpc" "vpcbm" {
  name = "cli-vpc-2"
}
data "ibm_is_subnet" "subnetbm" {
  name = "cli-subnet-1"
}

data "ibm_is_vpc_address_prefixes" "is_vpc_address_prefix" {
	vpc = ibm_is_vpc.vpc1.id
}

resource "ibm_is_subnet" "testacc_subnet" {
  name = "my-test-subnet"
  vpc = ibm_is_vpc.vpc1.id
  zone = "us-south-2"
  ipv4_cidr_block = "10.240.64.0/28"
}

data "ibm_is_flow_logs" "display_flow_logs" {
  name = "test1"
  vpc_name = "my-test-vpc-1"
  vpc_crn = ibm_is_vpc.vpc1.crn
  vpc = ibm_is_vpc.vpc1.id
  resource_group = ibm_is_vpc.vpc1.resource_group
  target = ibm_is_vpc.vpc1.id
  target_resource_type = "vpc"
}

data "ibm_is_vpn_gateways" "example" {
  resource_group = ibm_is_vpc.vpc1.resource_group
  mode = "policy"
}
data "ibm_is_bare_metal_servers" "example" {
  resource_group = ibm_is_vpc.vpc1.resource_group
  vpc_name = data.ibm_is_vpc.vpcbm.name
  vpc_crn = data.ibm_is_vpc.vpcbm.crn
  vpc = data.ibm_is_vpc.vpcbm.id
  name = "vpc-cli-do-not-delete-bm"
  network_interfaces_subnet = data.ibm_is_subnet.subnetbm.id
  network_interfaces_subnet_crn = data.ibm_is_subnet.subnetbm.crn
  network_interfaces_subnet_name = data.ibm_is_subnet.subnetbm.name
}

data "ibm_is_dedicated_host_group" "dgroup" {
  name = "test-ds"
}

data "ibm_is_dedicated_host" "dhost"{
  name = "test-ds"
  host_group = data.ibm_is_dedicated_host_group.dgroup.id
}
data "ibm_is_dedicated_host_groups" "dhgroups" {
  resource_group = ibm_is_vpc.vpc1.resource_group
  zone = "us-south-2"
  name = "test-ds"
}
data "ibm_is_dedicated_hosts" "dhosts"{
  resource_group = ibm_is_vpc.vpc1.resource_group
  zone = "us-south-2"
  name = "test-ds"
}

data "ibm_is_floating_ips" "is_floating_ips" {
  name   = "vpctestexample-fip1"
  resource_group = ibm_is_vpc.vpc1.resource_group
}


data "ibm_is_network_acl" "is_network_acl" {
  vpc_name = "my-test-vpc-1"
  name = "shortcake-embark-margin-pry"
}
data "ibm_is_network_acl_rules" "testacc_ds_ruleslist" {
  network_acl = data.ibm_is_network_acl.is_network_acl.id
  direction = "outbound"
}
data "ibm_is_public_gateways" "test1"{
  resource_group = ibm_is_vpc.vpc1.resource_group
}

data "ibm_is_virtual_endpoint_gateways" "test1" {
		resource_group = ibm_is_vpc.vpc1.resource_group
    name = "test"
}

data "ibm_is_vpc_routing_tables" "test1" {
  vpc =  ibm_is_vpc.vpc1.id
  is_default = true
}

data "ibm_is_vpcs" "vpcs" {
  resource_group = ibm_is_vpc.vpc1.resource_group
  classic_access = false
}

data "ibm_is_vpn_gateway_connections" "test1" {
  vpn_gateway = "0727-5d625e8d-0c6c-4b72-813b-14c3a0ca7388"
  status = "up"
}
data "ibm_is_vpn_gateways" "test1" {
  resource_group = ibm_is_vpc.vpc1.resource_group
  mode = "route"
}

@hkantare hkantare merged commit f0af6a7 into IBM-Cloud:master Dec 14, 2022
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.

2 participants