Skip to content

rafikbahri/tf-aws-private-subnet

Repository files navigation

Requirements

Name Version
terraform >= 1.9.5
aws >= 5.67.0

Providers

Name Version
aws 5.67.0

Modules

No modules.

Resources

Name Type
aws_eip.nat resource
aws_nat_gateway.ngw resource
aws_route_table.private resource
aws_route_table_association.internet resource
aws_subnet.subnet resource

Inputs

Name Description Type Default Required
availability_zone Availability zone of the subnet string "eu-west-3a" no
cidr_block IPv4 CIDR block for the subnet string "10.0.1.0/24" no
has_internet_access Whether this networl has internet access bool false no
map_public_ip_on_launch Specify true to indicate that instances launched into the subnet should be assigned a public IP address bool false no
name Subnet name string "" no
private_internet_route_table_id Private internet route table ID string "" no
public_subnet_id Public subnet ID that will host the NAT gateway string "" no
tags A map of tags to add to all resources in the subnet map(string) {} no
vpc_id VPC ID where the subnet will be created string "" no

Outputs

Name Description
arn Subnet ARN
cidr_block Subnet CIDR block
subnet_id Subnet ID

About

Terraform module for AWS Private Subnet

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages