alarm_cpu_threshold |
CPU Percentage that should cause an alarm if the actual cpu average is greater than or equal for 300 seconds |
number |
90 |
no |
alarm_error_threshold |
Number of error logs that should cause an alarm when the average is greater than or equal for 300 seconds |
number |
100 |
no |
alarm_memory_threshold |
Memory Percentage that should cause an alarm if the actual memory average is greater than or equal for 300 seconds |
number |
90 |
no |
alb_listener_rule_priority |
The priority of the ALB listener rule |
number |
100 |
no |
alb_security_group |
Security group of the ALB |
string |
"" |
no |
cluster_id |
The ARN of an ECS cluster |
string |
"" |
no |
cluster_name |
The name of the ECS cluster, used to identify the autoscaling resource target |
string |
"" |
no |
cluster_port |
The ECS Cluster / ECS Task Port Mapping |
number |
5000 |
no |
cluster_security_groups |
The security groups to associate with the ecs service |
list(string) |
[] |
no |
container_health_check |
The container health check |
object({ retries = number command = list(string) timeout = number interval = number startPeriod = number }) |
null |
no |
cpu |
Number of cpu units used by the ecs service |
number |
512 |
no |
desired_count |
Number of instances of the task definition to place and keep running |
number |
2 |
no |
enable_all_egress_rule |
Whether to create a security group rule that allows all outbound traffic |
bool |
true |
no |
enable_icmp_rule |
Whether to create a security group rule that allows ICMP traffic |
bool |
true |
no |
enabled |
Set to false to prevent the module from creating any resources |
bool |
null |
no |
environment |
ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT' |
string |
null |
no |
environment_variables |
The environment variables to pass to the container. This is a list of maps. map_environment overrides environment |
list(object({ name = string value = string })) |
[] |
no |
image_name |
The name of the image to pull from Amazon ECR |
string |
"" |
no |
image_repository |
The name of the ECR image repository |
string |
"" |
no |
image_tag |
The tag of the image to pull from Amazon ECR |
string |
"" |
no |
init_image_name |
The name of the init container image to pull from Amazon ECR |
string |
"" |
no |
init_image_repository |
The name of the init container ECR image repository |
string |
"" |
no |
init_image_tag |
The tag of the init container image to pull from Amazon ECR |
string |
"" |
no |
load_balancer_arn |
ARN of the Load Balancer to associate with the service |
string |
"" |
no |
load_balancer_health_check |
The load balancer health check |
object({ enabled = bool matcher = string path = string protocol = string }) |
{ "enabled": false, "matcher": "200-399", "path": "/", "protocol": "HTTP" } |
no |
load_balancer_listener_arn |
ARN of the Load Balancer listener to associate with the service |
string |
"" |
no |
load_balancer_target_group_arn |
ARN of the Load Balancer target group to associate with the service |
string |
"" |
no |
log_retention_days |
Number of days to retain logs |
number |
7 |
no |
map_environment_variables |
A set of key/value to provide as environment variables to the ecs task |
map(string) |
null |
no |
max_count |
Maxiumum number of instances of the task definition to place and keep running |
number |
4 |
no |
memory |
Amount (in MiB) of memory used by the ecs service |
number |
1024 |
no |
min_count |
Minimum number of instances of the task definition to place and keep running |
number |
1 |
no |
name |
ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. This is the only ID element not also included as a tag . The "name" tag is set to the full id string. There is no tag with the value of the name input. |
string |
"ecs-cluster" |
no |
region |
The region in which the resources will be created |
string |
null |
no |
role_arn |
The ARN of the role that will be assumed to create the resources in this module |
string |
null |
no |
secrets |
A set of key/value secret pairs to read from secrets manager and provide as environment variables to the ecs task |
map(string) |
{} |
no |
security_group_description |
The description of the security group |
string |
"Security group for the service" |
no |
security_group_enabled |
Whether to create a security group for the service |
bool |
true |
no |
service_url |
The URL of the service |
string |
"" |
no |
sns_alarm_topic_arn |
The SNS Topic ARN to use for Cloudwatch Alarms |
string |
"" |
no |
subnet_ids |
The subnets to associate with the ecs service |
list(string) |
[] |
no |
suffix |
Suffix to be added to the name of each resource |
string |
"" |
no |
tags |
Additional tags (e.g. {'Unit': 'XYZ'} ). Neither the tag keys nor the tag values will be modified by this module. |
map(string) |
{} |
no |
use_alb_security_group |
A flag to enable/disable allowing traffic from the ALB security group to the service security group |
bool |
false |
no |
vpc_id |
The VPC ID to associate with the ecs service |
string |
"" |
no |