This repository provides a Terraform module for AWS networking.
Specifically, it contains a basic set of configuration for accessing Amazon Machine Images (AMI).
This is achived by encapsulating following AWS virtual private cloud (VPC) Terraform resources:
The module can be imported as follows (adapt network cidr and availability zone as needed):
module "networking" {
source = "github.com/smirta/tf_module_test"
cidr = "10.0.10.0/24"
az = "us-west-2a"
}
The modules outputs can be accessed via the following variables:
- Subnet Id:
module.networking.main-subnet-id
- VPC Id:
module.networking.main-vpc-id
- CIDR of the Subnet:
module.networking.showCIDR