mod_reuse

chiraag-kakar/mod_reuse/aws

Terraform Module HCL AWS

This module helps in building reusable infrastructure in AWS by aggregating vpc, subnets, route, gateway, instances, security groups with ease.

Install
module "mod_reuse" {
source = "chiraag-kakar/mod_reuse/aws"
version = "1.0.1"
}
plain text: /constructs/tfmod-chiraag-kakar-mod-reuse-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

This module helps in building reusable infrastructure in AWS by aggregating vpc, subnets, route, gateway, instances, security groups with ease. Authentication : Note : Make sure you have created the following "provider.tf" and include the following values (If the resources are accessed by assuming role) `` provider "aws" { region = "ap-southeast-1" access_key = "XXXXXXXXXXXXXXXXXXXX" secret_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" assume_role { role_arn = "arn:aws:iam::XXXXXXXXXXXX:role/terraform" external_id = "role name" } } ` Example Usage : ` module "vpc" { # path to the module directory source = "./modules/vpc" #arguments optional for the module. default values are provided in module. if you need to provide values, please uncomment vars.tf file vpc_cidr_block = var.vpc_cidr_bl

Inputs (8)
NameTypeDescriptionDefault
environmentstringenvironemnt where the resources are created. eg test/prod required
environemnt_config_variablemapkey value pair containning all configuration for every environment required
vpc_namestringspecify name for the vpc"my-vpc"
public_subnet_cidr_blockstringspecify cidr block for subnet"10.0.0.0/24"
private_subnet_cidr_blockstringspecify cidr block for subnet"10.0.1.0/24"
destination_cidr_blockstringspecify cidr block for destination"0.0.0.0/0"
instance_tenancystringspecify instance tenancy for the vpc"default"
vpc_cidr_blockstringspecify cidr block for the vpc"10.0.0.0/16"
Outputs (4)
vpc_security_group_id
public_subnet_id
private_subnet_id
environemnt_config_variable
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud AWS
★ Stars2
Forks0
Total downloads4.4k
Inputs8
Outputs4
Submodules6
Namespacechiraag-kakar
Updated