File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,20 @@ resource "ibm_is_vpc" "vpc" {
2626 tags = var. resource_tags
2727}
2828
29+ resource "ibm_is_public_gateway" "gateway" {
30+ name = " ${ var . prefix } -gateway-1"
31+ vpc = ibm_is_vpc. vpc . id
32+ resource_group = module. resource_group . resource_group_id
33+ zone = " ${ var . region } -1"
34+ }
35+
2936resource "ibm_is_subnet" "subnet_zone_1" {
3037 name = " ${ var . prefix } -subnet-1"
3138 vpc = ibm_is_vpc. vpc . id
3239 resource_group = module. resource_group . resource_group_id
3340 zone = " ${ var . region } -1"
3441 total_ipv4_address_count = 256
42+ public_gateway = ibm_is_public_gateway. gateway . id
3543}
3644
3745# #######################################################################################################################
You can’t perform that action at this time.
0 commit comments