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 |