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

docs: update usage section to use values #853

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 43 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,49 @@ In addition to this root module, this repository provides two submodules that ca
module vpc {
source = "terraform-ibm-modules/landing-zone-vpc/ibm"
version = "X.X.X" # Replace "X.X.X" with a release version to lock into a specific release
resource_group_id = var.resource_group_id
region = var.region
prefix = var.prefix
tags = var.tags
vpc_name = var.vpc_name
classic_access = var.classic_access
network_acls = var.network_acls
use_public_gateways = var.use_public_gateways
subnets = var.subnets
vpn_gateways = var.vpn_gateways
resource_group_id = "xxXXxxXXxXxXXXXxxXxxxXXXXxXXXXX"
region = "us-south"
prefix = "my-test"
tags = ["tag1", "tag2"]
vpc_name = "my-vpc"
classic_access = true
network_acls = [
{
name = "acl1"
add_ibm_cloud_internal_rules = true
add_vpc_connectivity_rules = true
prepend_ibm_rules = true
rules = [
{
name = "rule1"
action = "allow"
direction = "inbound"
source = "0.0.0.0/0"
destination = "10.0.0.0/24"
tcp = {
port_min = 80
port_max = 80
source_port_min = 1024
source_port_max = 65535
}
}
]
}
]
use_public_gateways = {
zone-1 = true
}
subnets = {
zone-1 = [
{
name = "subnet1"
cidr = "10.10.10.0/24"
public_gateway = true
acl_name = "acl1"
}
]
}
vpn_gateways = ["vpn-gateway1", "vpn-gateway2"]
}
```

Expand Down