Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rafikbahri/tf-aws-public-subnet

Terraform module for AWS Public Subnet
https://github.com/rafikbahri/tf-aws-public-subnet

aws terraform terraform-module

Last synced: 3 days ago
JSON representation

Terraform module for AWS Public Subnet

Awesome Lists containing this project

README

        

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.9.5 |
| [aws](#requirement\_aws) | >= 5.67.0 |

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | 5.67.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [aws_route_table_association.internet](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table_association) | resource |
| [aws_subnet.subnet](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/subnet) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [availability\_zone](#input\_availability\_zone) | Availability zone of the subnet | `string` | `""` | no |
| [cidr\_block](#input\_cidr\_block) | IPv4 CIDR block for the subnet | `string` | `"10.0.2.0/24"` | no |
| [has\_internet\_access](#input\_has\_internet\_access) | Whether this networl has internet access | `bool` | `false` | no |
| [map\_public\_ip\_on\_launch](#input\_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](#input\_name) | Subnet name | `string` | `""` | no |
| [public\_internet\_route\_table\_id](#input\_public\_internet\_route\_table\_id) | Public internet route table ID | `string` | `""` | no |
| [tags](#input\_tags) | A map of tags to add to all resources in the subnet | `map(string)` | `{}` | no |
| [vpc\_id](#input\_vpc\_id) | VPC ID where the subnet will be created | `string` | `""` | no |

## Outputs

| Name | Description |
|------|-------------|
| [arn](#output\_arn) | Subnet ARN |
| [cidr\_block](#output\_cidr\_block) | Subnet CIDR block |
| [subnet\_id](#output\_subnet\_id) | Subnet ID |