kazhala / terraform-aws-ecs-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-ecs-service

Only supports EC2 instance based ECS cluster.

Requirements

Name Version
terraform >= 1.0.0
aws >= 3.60
random >= 2.1.0

Providers

Name Version
aws 3.63.0
random 3.1.0

Modules

No modules.

Resources

Name Type
aws_alb_target_group.this resource
aws_ecs_service.this resource
aws_ecs_task_definition.this resource
random_id.ecs_service resource
random_id.ecs_task_definition resource
random_id.target_group resource

Inputs

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

Outputs

Name Description
aws_alb_target_group Outputs of the ALB target group created.
aws_ecs_service Outputs of the ECS service created.
aws_ecs_task_definition Outputs of the ECS task definition created.

About

License:MIT License


Languages

Language:HCL 100.0%