Skip to content

TechHoldingLLC/terraform-aws-ecs-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Name Version
terraform >= 1.0
aws >= 4.5

Providers

Name Version
aws >= 4.5

Modules

No modules.

Resources

Name Type
aws_appautoscaling_policy.autoscaling resource
aws_appautoscaling_target.autoscaling resource
aws_ecs_service.service resource
aws_caller_identity.current data source
aws_partition.current data source
aws_region.current data source

Inputs

Name Description Type Default Required
autoscaling Autoscaling enabled bool false no
autoscaling_policy Autoscaling target value for CPU/Memory
list(object({
name = string
scale_in_cooldown = number
scale_out_cooldown = number
target_value = number
predefined_metric_type = string
}))
[] no
capacity_provider_strategy proper weights to associate to Fargate & Fargate spot map(number) {} no
desired_task_count ECS desired task count to be running number n/a yes
ecs_cluster_id ECS cluster id string n/a yes
enable_ecs_managed_tags Specifies whether to enable Amazon ECS managed tags for the tasks within the service. bool false no
health_check_grace_period_seconds Task warm up time before health checks in seconds number 0 no
load_balancer Load balancer config map(any) {} no
max_autoscaling_task_count Maximum task count in autoscaling number 5 no
min_autoscaling_task_count Minimum task count in autoscaling number 1 no
name ECS task definition name string n/a yes
propagate_tags Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are SERVICE and TASK_DEFINITION string n/a yes
security_group_ids ECS security group id list(any) n/a yes
service_connect_config Service connect configuration map(any) {} no
subnets VPC subnets id list(any) n/a yes
tags A mapping of tags to assign to all resources map(string) {} no
task_definition_arn ECS task definition arn string n/a yes

Outputs

Name Description
service_name n/a

License

Apache 2 Licensed. See LICENSE for full details.