terraform-aws-ecs-service
Only supports EC2 instance based ECS cluster.
No modules.
Name |
Description |
Type |
Default |
Required |
cluster_id |
ID of the ECS cluster to deploy the service. |
string |
n/a |
yes |
container_definitions |
Mapping of ECS container definitions. |
any |
n/a |
yes |
container_name |
Name of the container specified in task definition. |
string |
n/a |
yes |
container_port |
Container port to receive the traffic. |
number |
n/a |
yes |
deploy_service |
Deploy ECS service. |
bool |
true |
no |
deploy_target_group |
Deploy target group. |
bool |
true |
no |
deploy_task_definition |
Deploy ECS task definition. |
bool |
true |
no |
desired_count |
Number of task to run. |
number |
1 |
no |
ecs_service_token |
Token for unique name generation. |
string |
"ecs_service" |
no |
enable_execute_command |
Enable execute command on the ECS service. |
bool |
false |
no |
execution_role_arn |
ARN of the task execution role that the ECS container agent and DOcker daemon can assume. |
string |
null |
no |
health_check |
Health check for the default target group deployed. |
any |
null |
no |
host_port |
Port to receive traffic on the EC2 instance. |
number |
n/a |
yes |
name |
Purpose of the ECS service. |
string |
n/a |
yes |
protocol |
Protocol for the ECS service. |
string |
"HTTP" |
no |
service_alb_config |
ECS service ALB config. |
any |
[] |
no |
tags |
Tags to apply to applicable resources. |
map(string) |
{} |
no |
target_group_token |
Token for unique name generation. |
string |
"target_group" |
no |
task_definition_token |
Token for unique name generation. |
string |
"task_definition" |
no |
task_role_arn |
ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services. |
string |
null |
no |
volumes |
List of volume configuration |
any |
[] |
no |
vpc_id |
VPC to deploy the service. |
string |
n/a |
yes |