vpc-network

devops4me/vpc-network/aws

Terraform Module HCL AWS

Intelligently creates a redundant VPC network across availability zones with subnets gateways and routes to house any service eco-system.

Install
module "vpc-network" {
source = "devops4me/vpc-network/aws"
version = "1.0.3"
}
plain text: /constructs/tfmod-devops4me-vpc-network-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Create VPC and Subnets in Availability Zones This module's default behaviour is to create a VPC and then create one private and one public subnet per availability zone in the VPC's region. In Frankfurt 6 subnets would be created as there are 3 availability zones. Module Usage module vpc-network { source = "devops4me/vpc-network/aws" version ~> "1.0.3" in_vpc_cidr = "10.245.0.0/16" in_num_private_subnets = 6 in_num_public_subnets = 3 } The most common use case is to specify the VPC Cidr, the number of public and private subnets. --- Run the Example You can run the example to see this module create a number of VPCs with varying attributes such as the number of private/public subnets. Module Inputs | Input Variable | Type | Description | Default | |:-------------------------- |:-------:|:----

Inputs (9)
NameTypeDescriptionDefault
in_subnets_maxnumberTwo to the power of in_subnets_max is the maximum number of subnets carvable fro4
in_create_public_gatewayboolAn internet gateway and route is created unless this variable is supplied as faltrue
in_create_private_gatewayboolIf private subnets exist an EIP, a NAT gateway, route and subnet association aretrue
in_timestampstringA timestamp for resource tags in the format ymmdd-hhmm like 80911-1435"timestamp"
in_num_private_subnetsnumberThe number of private subnets to create (defaults to 3 if not specified).3
in_num_public_subnetsnumberThe number of public subnets to create (defaults to 3 if not specified).3
in_ecosystemstringCreational stamp binding all infrastructure components created on behalf of this"vpc-network"
in_descriptionstringUbiquitous note detailing who, when, where and why for every infrastructure comp"This VPC network was created for an eco
in_vpc_cidrstringThe CIDr block defining the range of IP addresses allocated to this VPC."10.42.0.0/16"
Outputs (5)
out_public_subnet_ids — The public subnet IDS in every availability zone of this VPC.
out_outgoing_routes — Aids creation of explicit dependency for instances brought up in private subnets.
out_vpc_id — This (string) vpc_id is the ID of the VPC that has just been created.
out_subnet_ids — Every subnet ID in every availability zone of this VPC.
out_private_subnet_ids — The private subnet IDS in every availability zone of this VPC.
Resources (8)
aws_eipaws_internet_gatewayaws_nat_gatewayaws_routeaws_route_tableaws_route_table_associationaws_subnetaws_vpc
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.3
Cloud AWS
★ Stars4
Forks2
Total downloads6.6k
Inputs9
Outputs5
Resources8
LicenseMIT
Namespacedevops4me
Updated