sggroups-ec2-module

Charan-Raj-K/sggroups-ec2-module/vpc

Terraform Module HCL VPC

Terraform module to provision vpc-security-groups-ec2instances on aws

Install
module "sggroups-ec2-module" {
source = "Charan-Raj-K/sggroups-ec2-module/vpc"
version = "1.0.1"
}
plain text: /constructs/tfmod-charan-raj-k-sggroups-ec2-module-vpc/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform module to create a vpc, security group and EC2

Inputs (17)
NameTypeDescriptionDefault
aws_regionstringDefault aws region required
environmentstringEnv variable used as prefix required
vpc_create_database_subnet_groupboolVPC Create Database Subnet Grouptrue
vpc_create_database_subnet_route_tableboolVPC Create Database Subnet Route Tabletrue
instance_typestringEC2 Instance Type"t3.micro"
instance_countnumberAWS EC2 instance count1
vpc_availability_zoneslist(string)VPC AVAILABILITY ZONE[ "us-east-1a", "us-east-1b" ]
vpc_public_subnetslist(string)vpc public subnets[ "10.0.101.0/24", "10.0.102.0/24" ]
vpc_namestringVPC Name"myvpc"
vpc_enable_dns_hostnamesboolvpc enable dns hostnamestrue
vpc_single_nat_gatewayboolvpc single nat gatewaytrue
vpc_enable_dns_supportboolvpc enable dns supporttrue
instance_keypairstringAWS EC2 Key pair that need to be associated with EC2 Instance"May"
vpc_enable_nat_gatewayboolvpc enable nat gatewaytrue
vpc_cidr_blockstringVPC CIDR Block"10.0.0.0/16"
vpc_private_subnetslist(string)vpc private subnets[ "10.0.1.0/24", "10.0.2.0/24" ]
vpc_database_subnetslist(string)vpc database subnets[ "10.0.151.0/24", "10.0.152.0/24" ]
Outputs (18)
public_subnets — List of IDs of public subnets
vpc_security_group_ids — List of associated security groups of instances, if running in non-default VPC
vpc_id — The ID of the VPC
private_subnets — List of IDs of private subnets
azs — A list of availability zones spefified as argument to this module
security_groups — List of associated security groups of instances
subnet_id — List of IDs of VPC subnets of instances
public_ip — List of public DNS names assigned to the instances. For EC2-VPC, this is only available if you've en
public_dns — List of public DNS names assigned to the instances. For EC2-VPC, this is only available if you've en
public_sg_group_id — The ID of the security group
public_sg_group_name — The name of the security group
id — List of IDs of instances
availability_zone — List of availability zones of instances
public_sg_group_vpc_id — The VPC ID
vpc_cidr_block — The CIDR block of the VPC
nat_public_ips — List of public Elastic IPs created for AWS NAT Gateway
key_name — List of key names of instances
instance_count — Number of instances to launch specified as argument to this module
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud VPC
★ Stars0
Forks1
Total downloads746
Inputs17
Outputs18
NamespaceCharan-Raj-K
Updated