cluster_arn |
The ARN of the ECS cluster |
string |
n/a |
yes |
container_definitions |
The JSON formatted container definition |
string |
n/a |
yes |
deployment_circuit_breaker |
The deployment circuit breaker configuration |
object({ enable = bool rollback = bool }) |
{ "enable": false, "rollback": false } |
no |
deployment_maximum_percent |
The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment |
number |
200 |
no |
deployment_minimum_healthy_percent |
The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment |
number |
100 |
no |
desired_count |
The number of instances of the task definition to place and keep running |
number |
1 |
no |
efs_volumes |
n/a |
list(object({ host_path = string name = string efs_volume_configuration = list(object({ file_system_id = string root_directory = string transit_encryption = string transit_encryption_port = string authorization_config = list(object({ access_point_id = string iam = string })) })) })) |
[] |
no |
enable_execute_command |
Whether to enable the execute command functionality on the service |
bool |
false |
no |
ephemeral_storage_size_in_gib |
The size of the ephemeral storage to use for the task definition |
number |
30 |
no |
force_new_deployment |
Whether to force a new deployment of the service |
bool |
false |
no |
health_check_grace_period_seconds |
The grace period to allow for healthy instances to warm up before checking them |
number |
0 |
no |
name |
The name of the ECS service |
string |
n/a |
yes |
pin_task_definition_revision |
The revision of the task definition to use |
number |
0 |
no |
security_groups |
A list of security group IDs to associate with the service |
list(string) |
n/a |
yes |
service_load_balancers |
A list of load balancers to associate with the service |
list(object({ container_name = string container_port = number elb_name = optional(string) target_group_arn = string })) |
n/a |
yes |
service_role_arn |
The ARN of the IAM role to use for the service |
string |
n/a |
yes |
subnets |
A list of subnet IDs to launch the service in |
list(string) |
n/a |
yes |
tags |
A map of tags to add to all resources |
map(string) |
{} |
no |
task_cpu |
The amount of CPU to use for the task definition |
string |
"256" |
no |
task_exec_role_arn |
The ARN of the IAM role to use for the execution |
string |
n/a |
yes |
task_memory |
The amount of memory to use for the task definition |
string |
"512" |
no |
task_role_arn |
The ARN of the IAM role to use for the task |
string |
n/a |
yes |
wait_for_steady_state |
Whether to wait for the service to reach a steady state before reporting success |
bool |
false |
no |