DOC: updated readme with example

This commit is contained in:
xpk 2023-07-12 23:04:58 +08:00
parent d043b530b8
commit abbc376a8f
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86

View File

@ -33,3 +33,20 @@ Subnet cidrs needs to be specified manually
| public_subnets | list of cidr blocks | list |
| private_subnets | list of cidr blocks | list |
| secondary_cidr_blocks | list of secondary cidrs | list |
## Example:
```hcl
module "vpc-subnets" {
source = "../../modules/networking/vpc-subnet-manual"
resource-prefix = local.resource-prefix
private-subnet-cidrs = ["172.17.0.0/24", "172.17.1.0/24"]
public-subnet-cidrs = ["172.17.10.0/24", "172.17.11.0/24"]
vpc-cidr = "172.17.0.0/16"
enable-flow-log = false
vpcflowlog-cwl-loggroup-key-arn = ""
create-nat-gateway = true
create-free-vpc-endpoints = true
}
```