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"
}
README
Terraform module to create a vpc, security group and EC2
Inputs (17)
| Name | Type | Description | Default |
|---|---|---|---|
| aws_region | string | Default aws region | required |
| environment | string | Env variable used as prefix | required |
| vpc_create_database_subnet_group | bool | VPC Create Database Subnet Group | true |
| vpc_create_database_subnet_route_table | bool | VPC Create Database Subnet Route Table | true |
| instance_type | string | EC2 Instance Type | "t3.micro" |
| instance_count | number | AWS EC2 instance count | 1 |
| vpc_availability_zones | list(string) | VPC AVAILABILITY ZONE | [
"us-east-1a",
"us-east-1b"
] |
| vpc_public_subnets | list(string) | vpc public subnets | [
"10.0.101.0/24",
"10.0.102.0/24"
] |
| vpc_name | string | VPC Name | "myvpc" |
| vpc_enable_dns_hostnames | bool | vpc enable dns hostnames | true |
| vpc_single_nat_gateway | bool | vpc single nat gateway | true |
| vpc_enable_dns_support | bool | vpc enable dns support | true |
| instance_keypair | string | AWS EC2 Key pair that need to be associated with EC2 Instance | "May" |
| vpc_enable_nat_gateway | bool | vpc enable nat gateway | true |
| vpc_cidr_block | string | VPC CIDR Block | "10.0.0.0/16" |
| vpc_private_subnets | list(string) | vpc private subnets | [
"10.0.1.0/24",
"10.0.2.0/24"
] |
| vpc_database_subnets | list(string) | vpc database subnets | [
"10.0.151.0/24",
"10.0.152.0/24"
] |
Outputs (18)
public_subnets — List of IDs of public subnetsvpc_security_group_ids — List of associated security groups of instances, if running in non-default VPCvpc_id — The ID of the VPCprivate_subnets — List of IDs of private subnetsazs — A list of availability zones spefified as argument to this modulesecurity_groups — List of associated security groups of instancessubnet_id — List of IDs of VPC subnets of instancespublic_ip — List of public DNS names assigned to the instances. For EC2-VPC, this is only available if you've enpublic_dns — List of public DNS names assigned to the instances. For EC2-VPC, this is only available if you've enpublic_sg_group_id — The ID of the security grouppublic_sg_group_name — The name of the security groupid — List of IDs of instancesavailability_zone — List of availability zones of instancespublic_sg_group_vpc_id — The VPC IDvpc_cidr_block — The CIDR block of the VPCnat_public_ips — List of public Elastic IPs created for AWS NAT Gatewaykey_name — List of key names of instancesinstance_count — Number of instances to launch specified as argument to this moduleDetails
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud VPC
★ Stars0
Forks1
Total downloads746
Inputs17
Outputs18
NamespaceCharan-Raj-K
Updated