subnet

clouddrove/subnet/aws

Terraform Module HCL AWS

Terraform module to create public, private and public-private subnet with network acl, route table, Elastic IP, nat gateway, flow log.

Install
module "subnet" {
source = "clouddrove/subnet/aws"
version = "2.0.1"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform AWS Subnet Terraform module to create public, private and public-private subnet with network acl, route table, Elastic IP, nat gateway, flow log. We eat, drink, sleep and most importantly love DevOps. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems . Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure. This module is basically combination of Terraform open source and includes automatation tests and examples. It also helps to create and improve your infrastructure with m

Inputs (50)
NameTypeDescriptionDefault
vpc_idstringVPC ID. required
flow_log_hive_compatible_partitionsbool(Optional) Indicates whether to use Hive-compatible prefixes for flow logs storefalse
attributeslist(any)Additional attributes (e.g. `1`).[]
managedbystringManagedBy, eg 'CloudDrove'."hello@clouddrove.com"
ipv6_cidr_blockstringBase CIDR block which is divided into subnet CIDR blocks (e.g. `10.0.0.0/16`).null
igw_idstringInternet Gateway ID that is used as a default route when creating public subnets""
enable_flow_logboolEnable subnet_flow_log logs.false
enableboolSet to false to prevent the module from creating any resources.true
public_subnet_enable_resource_name_dns_a_record_on_launchboolIndicates whether to respond to DNS queries for instance hostnames with DNS A refalse
map_public_ip_on_launchboolSpecify true to indicate that instances launched into the public subnet should bfalse
flow_log_traffic_typestringType of traffic to capture. Valid values: ACCEPT,REJECT, ALL."ALL"
flow_log_log_formatstringThe fields to include in the flow log record, in the order in which they should null
single_nat_gatewayboolEnable for only single NAT Gateway in one Availability Zonefalse
public_rt_ipv6_destination_cidrstringThe destination ipv6 CIDR block."::/0"
environmentstringEnvironment (e.g. `prod`, `dev`, `staging`).""
ipv4_private_cidrslist(any)Subnet CIDR blocks (e.g. `10.0.0.0/16`).[]
public_rt_ipv4_destination_cidrstringThe destination ipv4 CIDR block."0.0.0.0/0"
flow_log_destination_arnstringARN of resource in which flow log will be sent.null
flow_log_iam_role_arnstringThe ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log null
flow_log_per_hour_partitionbool(Optional) Indicates whether to partition the flow log per hour. This reduces thfalse
private_subnet_assign_ipv6_address_on_creationboolSpecify true to indicate that network interfaces created in the specified subnetfalse
… and 10 more inputs
Outputs (13)
private_acl — The ID of the network ACL.
private_subnet_id — The ID of the private subnet.
public_route_tables_id — The ID of the routing table.
private_route_tables_id — The ID of the routing table.
public_acl — The ID of the network ACL.
nat_gateway_private_ip — The private IPv4 address to assign to the NAT Gateway. If you don't provide an address, a private IP
public_subnet_id — The ID of the subnet.
private_subnet_cidrs_ipv6 — CIDR blocks of the created private subnets.
private_tags — A mapping of private tags to assign to the resource.
public_tags — A mapping of public tags to assign to the resource.
public_subnet_cidrs — CIDR blocks of the created public subnets.
public_subnet_cidrs_ipv6 — CIDR blocks of the created public subnets.
private_subnet_cidrs — CIDR blocks of the created private subnets.
Resources (9)
aws_eipaws_flow_logaws_nat_gatewayaws_network_aclaws_network_acl_ruleaws_routeaws_route_tableaws_route_table_associationaws_subnet
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.1
Cloud AWS
★ Stars42
Forks16
Total downloads50.8k
Inputs50
Outputs13
Resources9
LicenseApache-2.0
Namespaceclouddrove
Updated