bitintheskud / terragrunt-aws-generic-ec2

Terragrunt module to build one or more ec2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terragrunt-aws-generic-ec2

Build Status semantic-release

Description

Build one or more AWS ec2 instance using terragrunt.

Requirements

No requirements.

Providers

Name Version
aws n/a
random n/a
template n/a

Inputs

Name Description Type Default Required
aws_region AWS region to create resource in string n/a yes
bastion_sg Bastion security group (required) string false no
bastion_source_sg Bastion source security group id to allow ssh access to host string "" no
cloudwatch_action_enable Disable or enable action for cloudwatch alarm bool n/a yes
cloudwatch_alert_to_enable List of cloudwatch alert type list(string)
[
"swap",
"memory",
"disk",
"cpu"
]
no
cloudwatch_sns_topic_arn The SNS topic ARN to send cloudwatch alarm string n/a yes
custom_tags Custom tags to add to all the resource map(string) {} no
disable_ec2_api_termination Disable api termination for ec2 instance. bool false no
ec2_ami_id AMI id to use to create ec2 instances (default to ubuntu) string "" no
ec2_instance_count Count of ec2 instance to create number 1 no
ec2_instance_type ec2 instance type to use. string "t3.small" no
ec2_key_name ec2 key name (must exist) string n/a yes
ec2_subnet_ids List of subnet ids where ec2 will be created. list(string) n/a yes
ec2_tags Use this variable to add another extra tags to instance in your terragrunt hcl any "" no
enable_bastion Enable or disable bastion for ssh access bool false no
enable_ec2_public_ip Associate public ip to the ec2 instance bool false no
enable_eip Enable elastic ip creation (static ip) bool false no
enable_http Enable or disable http / https bool false no
enable_route53 Enable route53 dns creation for your server bool true no
enable_ssh Enable or disable ssh access bool false no
env n/a any n/a yes
identifier A unique string to describe the role of the resource. This can be for example, front, wp, admin). This is used in the name string n/a yes
instance_profile Instance profile name to attache to the EC2 string "" no
project Project code will be use to name resource. string "infra" no
route53_zone_id Route53 zone id if dns creation is enable (see enable_route53) string n/a yes
security_group Security group parameters any {} no
security_group_bastion Bastion security group ID to allow ssh access to host string "" no
short_env Use to shorten environement in name. Some limit apply sometinmes on res name. map(string)
{
"development": "dev",
"integration": "int",
"preprod": "pprod",
"preproduction": "pprod",
"production": "prod",
"staging": "stag",
"uat": "uat"
}
no
ssh_cidr_blocks Specify cidr block for ssh access to host list(string)
[
"0.0.0.0/0"
]
no
vpc_id VPC id to launch the resource in string n/a yes

Outputs

Name Description
availability_zone EC2 availability_zone as a list
dns_public_ip n/a
ec2_eip_public_ip n/a
ec2_private_dns n/a
ec2_private_ip n/a
ec2_public_dns n/a
ec2_public_ip n/a
instance_count EC2 instance count
instance_ids EC2 instance id as a list
security_group_id Security Group id attach to the instance(s)

About

Terragrunt module to build one or more ec2


Languages

Language:HCL 99.0%Language:Smarty 1.0%