AWS VPC
With Amazon Virtual Private Cloud (Amazon VPC), you can launch AWS resources in a logically isolated virtual network that you’ve defined. This virtual network closely resembles a traditional network that you’d operate in your own data center, with the benefits of using the scalable infrastructure of AWS.
This module creates an AWS VPC with these constraints:
Use all availability zones
Create VPC flow logs in CloudWatch
All traffic are captured in flow logs
Enable DNS hostnames and DNS support
Possibility to set the use of the VPC for an AWS EKS (only one EKS)
Requirements
Name |
Version |
|---|---|
>= 1.0 |
|
>= 5.61 |
Providers
Name |
Version |
|---|---|
>= 5.61 |
Modules
Name |
Source |
Version |
|---|---|---|
terraform-aws-modules/vpc/aws |
5.19.0 |
Resources
Name |
Type |
|---|---|
data source |
|
data source |
Inputs
Name |
Description |
Type |
Default |
Required |
|---|---|---|---|---|
Main CIDR bloc for the VPC |
|
|
no |
|
Name of the EKS to be deployed in this VPC |
|
|
no |
|
ARN of the KMS to encrypt/decrypt VPC flow logs |
|
|
no |
|
Number of days for retention of VPC flow logs in the CloudWatch |
|
|
no |
|
The format for the flow log |
|
|
no |
|
The maximum interval of time during which a flow of packets is captured and aggregated into a flow log |
|
|
no |
|
Name of the AWS VPC |
|
n/a |
yes |
|
List of CIDR blocks for Pods |
|
|
no |
|
A list of private subnets inside the VPC |
|
|
no |
|
A list of public subnets inside the VPC |
|
|
no |
|
List of secondary CIDR blocks to associate with the VPC to extend the IP Address pool |
|
|
no |
|
Map of keys,values to tags VPC resources |
|
|
no |
|
Use Karpenter for the cluster autoscaling |
|
|
no |
Outputs
Name |
Description |
|---|---|
The ARN of the VPC |
|
A list of availability zones |
|
The CIDR block of the VPC |
|
Name of the AWS EKS cluster |
|
Boolean to disable external access |
|
The ARN of the IAM role used when pushing logs to Cloudwatch log group |
|
The ARN of the destination for VPC Flow Logs |
|
The ID of the Flow Log resource |
|
The ID of the VPC |
|
The name of the VPC |
|
List of ARNs of Pods subnets |
|
List of IDs of Pods subnets |
|
List of Pods subnet CIDR blocks |
|
List of ARNs of private subnets |
|
List of IDs of private subnets |
|
List of cidr_blocks of private subnets |
|
Map of private subnet IDs to availability zones |
|
List of ARNs of public subnets |
|
List of IDs of public subnets |
|
List of cidr_blocks of public subnets |
|
List of secondary CIDR blocks of the VPC |
|
List of tags for VPC resources |
|
Object VPC |