ecs-service
appzen-oss/ecs-service/aws
Install
README
terraform-aws-ecs-service   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)
| Name | Type | Description | Default |
|---|---|---|---|
| ecs_cluster_arn | string | ARN of ECS cluster in which the service will be deployed | required |
| ecs_security_group_id | string | Security group ID of ECS cluster in which the service will be deployed | required |
| capacity_provider_2_weight | string | The relative percentage of the total number of launched tasks that should use th | "0" |
| docker_memory_reservation | number | Soft limit on memory use for task container (default 128) | 128 |
| subnet_ids | list | The subnets associated with the task or service. For awsvpc | [] |
| source_volume_name | string | URL of firelens application | "logvolume" |
| sidecar_docker_memory_reservation | number | Sidecar Soft limit on memory use for task container (default 128) | 128 |
| cleanup_sidecar_docker_memory_reservation | number | Sidecar Soft limit on memory use for task container (default 128) | 128 |
| ecslogs_bucket | string | s3 bucket to store ecs service logs | "" |
| assign_public_ip | bool | Assign a public IP address to the ENI (Fargate launch type only) | false |
| docker_volumes | list | List of volume maps of format { "name" = "var_name", "host_path" = "var_value" } | [
{
"name": "logvolume"
}
] |
| ecs_data_volume_path | string | Path to volume on ECS node to be defined as a "data" volume (default "/opt/data" | "/opt/data" |
| acm_cert_domain | string | Domain name of ACM-managed certificate | "" |
| app_port | string | Numeric port on which application listens (unnecessary if neither lb_enable_http | "" |
| telegraf_sidecar_docker_image | string | Sidecar Docker image to use for task | "" |
| dns_parent_zone_name | string | DNS name of the parent zone to put this in | "" |
| service_full_name | bool | Use full name (id from label module) instead of short name for service name | false |
| lb_log_bucket_name | string | S3 bucket for storing LB access logs. To create the bucket "create_log_bucket" s | "" |
| awslogs_stream_prefix | string | "firelens" | |
| docker_memory | number | Hard limit on memory use for task container (default 256) | 256 |
| cleanup_sidecar_docker_image | string | Sidecar Docker image to use for task | "" |
| network_mode | string | Docker network mode for task (default "bridge") | "bridge" |
| … and 10 more inputs | |||
Outputs (23)
lb_dns_aliases — List of DNS aliases add for ALBlb_listener_arns — ARNs of all the LB Listenerslb_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 namelb_listener_http_arns — The ARNs of the HTTP LB Listenersservice_iam_role_arn — ARN of the IAM Role for the ECS Servicecluster_arn — ECS cluster ARNlabelservice_iam_role_name — Name of the IAM Role for the ECS Tasklb_arn — ARN of the LBlb_listener_https_arns — The ARNs of the HTTPS LB Listenerslb_listener_tcp_arns — The ARNs of the network TCP LB Listenerslb_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 servicetask_iam_role_arn — ARN of the IAM Role for the ECS Tasklb_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 Taskservice_arn — ECS service ARNcontainer_jsonResources (7)
Topics & Tags
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,