Skip to content

TechHoldingLLC/terraform-aws-vpc

Repository files navigation

Requirements

Name Version
aws >= 4.5

Providers

Name Version
aws >= 4.5

Modules

Name Source Version
ec2_nat_instance git::https://github.com/TechHoldingLLC/terraform-aws-ec2.git v1.0.0
nat_instance_sg git::https://github.com/TechHoldingLLC/terraform-aws-security-group.git v0.0.1

Resources

Name Type
aws_cloudwatch_log_group.vpc_flow_log resource
aws_eip.ngw_eip resource
aws_flow_log.vpc resource
aws_iam_role.vpc_flow_log resource
aws_iam_role_policy.vpc_flow_log resource
aws_internet_gateway.igw resource
aws_nat_gateway.ngw resource
aws_route.igw_route resource
aws_route.ngw_route resource
aws_route_table.private_route_table resource
aws_route_table.public_route_table resource
aws_route_table_association.private_route_table_assoc resource
aws_route_table_association.public_route_table_assoc resource
aws_subnet.private_subnet resource
aws_subnet.public_subnet resource
aws_vpc.vpc resource
aws_ami.amazon_linux_nat_instance data source
aws_availability_zones.available data source
aws_iam_policy_document.vpc_flow_log data source
aws_iam_policy_document.vpc_flow_log_trust_policy data source

Inputs

Name Description Type Default Required
cidr_block The CIDR block defining the private IP address space used string n/a yes
create_private_subnets Create private subnets flag bool false no
enable_flow_log Flag to enable/disable vpc flow log bool false no
flow_log_retention_in_days Flow logs retention in days number 0 no
name VPC name string n/a yes
nat_instance_ami_id NAT instance AMI id string "" no
nat_instance_key_name NAT instance key pair name string "" no
nat_instance_sg_egress Egress for Nat instance Security Group list(any) [] no
nat_instance_sg_ingress Ingress for Nat instance Security Group list(any) [] no
nat_instance_type NAT instance type string "t3.nano" no
nat_type NAT type i.e instance or gateway string "" no
number_of_aws_az_use How many aws avaibility zones use for deployment number 2 no
number_of_nat_gw Number of nat gateway for private subnets number 1 no
subnet_mask_bits Number of bits to use in CIDR subnet mask number 8 no

Outputs

Name Description
availability_zones n/a
cidr_block n/a
id n/a
name n/a
nat_gateway_id n/a
nat_instance_ip n/a
nat_instance_security_group_ids n/a
private_route_table_ids n/a
private_subnet_ids n/a
private_subnets_availability_zone n/a
private_subnets_cidr n/a
public_route_table_ids n/a
public_subnet_availability_zones n/a
public_subnet_cidrs n/a
public_subnet_ids n/a

License

Apache 2 Licensed. See LICENSE for full details.