Skip to content

Commit dfca052

Browse files
Khuzaima05Khuzaima-Shakeel
andauthored
docs: update usage section to use values (#853)
Co-authored-by: Khuzaima-Shakeel <[email protected]>
1 parent 36096ff commit dfca052

File tree

1 file changed

+43
-10
lines changed

1 file changed

+43
-10
lines changed

README.md

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,49 @@ In addition to this root module, this repository provides two submodules that ca
4848
module vpc {
4949
source = "terraform-ibm-modules/landing-zone-vpc/ibm"
5050
version = "X.X.X" # Replace "X.X.X" with a release version to lock into a specific release
51-
resource_group_id = var.resource_group_id
52-
region = var.region
53-
prefix = var.prefix
54-
tags = var.tags
55-
vpc_name = var.vpc_name
56-
classic_access = var.classic_access
57-
network_acls = var.network_acls
58-
use_public_gateways = var.use_public_gateways
59-
subnets = var.subnets
60-
vpn_gateways = var.vpn_gateways
51+
resource_group_id = "xxXXxxXXxXxXXXXxxXxxxXXXXxXXXXX"
52+
region = "us-south"
53+
prefix = "my-test"
54+
tags = ["tag1", "tag2"]
55+
vpc_name = "my-vpc"
56+
classic_access = true
57+
network_acls = [
58+
{
59+
name = "acl1"
60+
add_ibm_cloud_internal_rules = true
61+
add_vpc_connectivity_rules = true
62+
prepend_ibm_rules = true
63+
rules = [
64+
{
65+
name = "rule1"
66+
action = "allow"
67+
direction = "inbound"
68+
source = "0.0.0.0/0"
69+
destination = "10.0.0.0/24"
70+
tcp = {
71+
port_min = 80
72+
port_max = 80
73+
source_port_min = 1024
74+
source_port_max = 65535
75+
}
76+
}
77+
]
78+
}
79+
]
80+
use_public_gateways = {
81+
zone-1 = true
82+
}
83+
subnets = {
84+
zone-1 = [
85+
{
86+
name = "subnet1"
87+
cidr = "10.10.10.0/24"
88+
public_gateway = true
89+
acl_name = "acl1"
90+
}
91+
]
92+
}
93+
vpn_gateways = ["vpn-gateway1", "vpn-gateway2"]
6194
}
6295
```
6396

0 commit comments

Comments
 (0)