ecs-service

appzen-oss/ecs-service/aws

Terraform Module HCL AWS
Install
module "ecs-service" {
source = "appzen-oss/ecs-service/aws"
version = "3.4.10"
}
plain text: /constructs/tfmod-appzen-oss-ecs-service-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-ecs-service ![CircleCI](https://circleci.com/gh/devops-workflow/terraform-aws-ecs-service/tree/master) ![Github release](https://github.com/devops-workflow/terraform-aws-ecs-service/releases) Terraform module for deploying and managing a generic ECS service onto an existing cluster. Required - region - AWS region in which the EC2 Container Service cluster is located - ecs_cluster - EC2 Container Service cluster in which the service will be deployed (must already exist, the module will not create it). - service_identifier - Unique identifier for the service, used in naming resources. - task_identifier - Unique identifier for the task, used in naming resources. - docker_image - Docker image specification. Usage ``hcl module "pganalyze_testdb" { source = "github.com/terraform-co

Inputs (50)
NameTypeDescriptionDefault
ecs_cluster_arnstringARN of ECS cluster in which the service will be deployed required
ecs_security_group_idstringSecurity group ID of ECS cluster in which the service will be deployed required
capacity_provider_2_weightstringThe relative percentage of the total number of launched tasks that should use th"0"
docker_memory_reservationnumberSoft limit on memory use for task container (default 128)128
subnet_idslistThe subnets associated with the task or service. For awsvpc[]
source_volume_namestringURL of firelens application"logvolume"
sidecar_docker_memory_reservationnumberSidecar Soft limit on memory use for task container (default 128)128
cleanup_sidecar_docker_memory_reservationnumberSidecar Soft limit on memory use for task container (default 128)128
ecslogs_bucketstrings3 bucket to store ecs service logs""
assign_public_ipboolAssign a public IP address to the ENI (Fargate launch type only)false
docker_volumeslistList of volume maps of format { "name" = "var_name", "host_path" = "var_value" }[ { "name": "logvolume" } ]
ecs_data_volume_pathstringPath to volume on ECS node to be defined as a "data" volume (default "/opt/data""/opt/data"
acm_cert_domainstringDomain name of ACM-managed certificate""
app_portstringNumeric port on which application listens (unnecessary if neither lb_enable_http""
telegraf_sidecar_docker_imagestringSidecar Docker image to use for task""
dns_parent_zone_namestringDNS name of the parent zone to put this in""
service_full_nameboolUse full name (id from label module) instead of short name for service namefalse
lb_log_bucket_namestringS3 bucket for storing LB access logs. To create the bucket "create_log_bucket" s""
awslogs_stream_prefixstring"firelens"
docker_memorynumberHard limit on memory use for task container (default 256)256
cleanup_sidecar_docker_imagestringSidecar Docker image to use for task""
network_modestringDocker network mode for task (default "bridge")"bridge"
… and 10 more inputs
Outputs (23)
lb_dns_aliases — List of DNS aliases add for ALB
lb_listener_arns — ARNs of all the LB Listeners
lb_target_group_http_arns — ARNs of the HTTP target groups. Useful for passing to your Auto Scaling group module.
lb_target_group_arns — ARNs of all the target groups. Useful for passing to your Auto Scaling group module.
service_name — ECS service name
lb_listener_http_arns — The ARNs of the HTTP LB Listeners
service_iam_role_arn — ARN of the IAM Role for the ECS Service
cluster_arn — ECS cluster ARN
label
service_iam_role_name — Name of the IAM Role for the ECS Task
lb_arn — ARN of the LB
lb_listener_https_arns — The ARNs of the HTTPS LB Listeners
lb_listener_tcp_arns — The ARNs of the network TCP LB Listeners
lb_target_group_https_arns — ARNs of the HTTPS target groups. Useful for passing to your Auto Scaling group module.
lb_target_group_arns_suffix — ARNs suffix of all the target groups. Useful for passing to your Auto Scaling group module.
log_group_name — Cloudwatch log group name for service
task_iam_role_arn — ARN of the IAM Role for the ECS Task
lb_dns_name — FQDN of ALB provisioned for service (if present)
lb_zone_id — Route 53 zone ID of ALB provisioned for service (if present)
lb_target_group_tcp_arns — ARNs of the TCP target groups. Useful for passing to your Auto Scaling group module.
task_iam_role_name — Name of the IAM Role for the ECS Task
service_arn — ECS service ARN
container_json
Resources (7)
aws_cloudwatch_log_groupaws_ecs_serviceaws_ecs_task_definitionaws_iam_roleaws_iam_role_policyaws_iam_role_policy_attachmentaws_lb_listener_rule
Details
FrameworkTerraform Module
LanguageHCL
Version3.4.10
Cloud AWS
★ Stars0
Forks1
Total downloads21.6k
Inputs50
Outputs23
Resources7
Examples7
LicenseMIT
Namespaceappzen-oss
Updated