Tuesday, October 4
Shadow

Import VPC Address Prefixes and Routes



Import Address Prefixes

data "ibm_is_vpc" "project" {
  name = var.vpc_name
}

data "ibm_is_vpc_address_prefixes" "all" {
  vpc = data.ibm_is_vpc.project.id
}

data "ibm_is_vpc_address_prefixes" "specific" {
  vpc  = data.ibm_is_vpc.project.id
  name = var.address_prefix_name
}

data "ibm_is_vpc_address_prefix" "by_id" {
  vpc_name       = data.ibm_is_vpc.project.name
  address_prefix = var.address_prefix_id
}

data "ibm_is_vpc_address_prefix" "by_name" {
  vpc_name            = data.ibm_is_vpc.project.name
  address_prefix_name = var.address_prefix_name
}

Import VPC Routing Table

data "ibm_is_vpc_routing_table" "by_id" {
  vpc           = data.ibm_is_vpc.project.id
  routing_table = var.routing_table_id
}

data "ibm_is_vpc_routing_table" "by_name" {
  vpc  = data.ibm_is_vpc.project.id
  name = var.routing_table_name
}

Leave a Reply