1.5 KiB
1.5 KiB
Overview
This module performs the following tasks:
- Create VPC, vpcflow log
- Create subnets in every AZ
- Create IGW, NGW
Inputs:
Name | Description | Type | Default | Required |
---|---|---|---|---|
application | name of application | string | none | yes |
environment | capacity of environment (prd/dev/lab) | string | none | yes |
customer-name | owner of aws resources | string | none | yes |
project | name of project | string | none | yes |
default-tags | tags to be added to resources | list | none | yes |
number-of-private-subnets-per-az | number of private subnets per az | number | 0 | yes |
number-of-public-subnets-per-az | number of public subnets per az | number | 0 | yes |
create-nat-gateway | whether to deploy NAT gateway for private subnets | bool | true | yes |
vpc-cidr | VPC cidr | string | none | yes |
enable-flowlog | whether to enable vpc flowlog | bool | true | yes |
vpcflowlog-retain-days | number of days to retain vpc cloudwatch log | number | 90 | yes |
aws-region-short | short name of aws region (e.g. apne1) | string | none | yes |
aws-region | aws region (e.g. ap-northeast-1) | string | none | yes |
vpcflowlog-cwl-loggroup-key-arn | kms key alias arn for log group encryption | string | none | yes |
Outputs:
Name | Description | Type |
---|---|---|
vpc_id | vpc id | string |
public_subnets | list of cidr blocks | list |
private_subnets | list of cidr blocks | list |