Name | Version |
---|---|
terraform | >= 1.0.0 |
aws | >= 3.50 |
Name | Version |
---|---|
aws | 3.63.0 |
No modules.
Name | Type |
---|---|
aws_cloudwatch_log_group.flow_log | resource |
aws_flow_log.this | resource |
aws_iam_role.flow_log | resource |
aws_iam_role_policy.flow_log | resource |
aws_internet_gateway.this | resource |
aws_network_acl.private | resource |
aws_network_acl.public | resource |
aws_network_acl_rule.private_egress | resource |
aws_network_acl_rule.private_ingress | resource |
aws_network_acl_rule.public_egress | resource |
aws_network_acl_rule.public_ingress | resource |
aws_route.igw | resource |
aws_route_table.private | resource |
aws_route_table.public | resource |
aws_route_table_association.private | resource |
aws_route_table_association.public | resource |
aws_subnet.private | resource |
aws_subnet.public | resource |
aws_vpc.this | resource |
aws_availability_zones.this | data source |
aws_iam_policy_document.flow_log_assume_role | data source |
aws_iam_policy_document.flow_log_permission | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cidr_block | The VPC CIDR block. | string |
"10.0.0.0/16" |
no |
enable_vpc_flow_log | Enable VPC flow logs. | bool |
true |
no |
flow_log_log_group_prefix | CloudWatch log group prefix for flow logs. VPC name will be appended after this value. | string |
"/aws/vpc/flowlogs" |
no |
flow_log_retention_in_days | Specifies the number of days you want to retain log events in the specified log group. Allowed values: 1 | 3 | 5 | 7 | 14 | 30 | 60 | 90 | 120 | 150 | 180 | 365 | 400 | 545 | 731 | 1827 | 3653 | 0. If you select 0, the events in the log group are always retained and never expire." |
string |
0 |
no |
kms_key_id | The ARN of the KMS Key to use when encrypting log data. | string |
null |
no |
name | The VPC Name. | string |
n/a | yes |
subnet_cidr_newbits | Number of additional bits with which to extend the CIDR block for subnets. If cidr_block is "/16" with subnet_cidr_newbits equals 8 then the subnet will have CIDR blocks in "/24"." |
number |
8 |
no |
subnet_count | Number of subnets to create for each type (Public, Private). | number |
3 |
no |
tags | Additional resource tags to apply to applicable resources. Format: {"key" = "value"} | map(string) |
{} |
no |
Name | Description |
---|---|
aws_internet_gateway | Internet gateway deployed for the VPC. |
aws_nacl | NACL deployed in the VPC. |
aws_route_table | Route table deployed in the VPC. |
aws_subnet | All subnets deployed in the VPC. |
aws_vpc | Outputs of AWS VPC. |