ecs-service

devops-workflow/ecs-service/aws

Terraform Module HCL AWS
Install
module "ecs-service" {
source = "devops-workflow/ecs-service/aws"
version = "3.1.4"
}
plain text: /constructs/tfmod-devops-workflow-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
vpc_idstringID of VPC in which ECS cluster is located required
namestringBase name for resources required
ecs_cluster_arnstringARN of ECS cluster in which the service will be deployed required
lb_internalstringConfigure LB as internal-onlytrue
namespace-envstringPrefix name with the environment. If true, format is: <env>-<name>true
lb_cookie_durationstringDuration of LB session stickiness cookie in seconds (default 86400)"86400"
ecs_deployment_minimum_healthy_percentstringLower limit in percentage of tasks that must remain healthy during a deployment "100"
lb_healthcheck_protocolstringProtocol for LB to use when connecting health checks (default HTTP)"HTTP"
lb_portsstringPorts load balancer should listen on"80"
docker_environmentlistList of environment maps of format { "name" = "var_name", "value" = "var_value" []
docker_memorystringHard limit on memory use for task container (default 256)256
delimiterstringDelimiter to be used between `name`, `namespaces`, `attributes`, etc."-"
lb_subnet_idslistVPC subnet IDs in which to create the LB (unnecessary if neither lb_enable_https[]
lb_healthcheck_portstringPort for LB to use when connecting health checks (default same as application tr"traffic-port"
docker_imagestringDocker image to use for task""
ecs_placement_constraintslistPlacement contraints to use when distributing tasks[]
attributeslistSuffix name with additional attributes (policy, role, etc.)[]
organizationstringOrganization name (Top level namespace).""
lb_healthcheck_pathstringURI path for LB health checks (default /)"/"
lb_ingress_cidr_blockslistList of ingress CIDR blocks for load balancer[ "10.0.0.0/8" ]
lb_typestringType of LB to create: application, network"application"
dns_aliaseslistAdditional DNS names[]
dns_parent_zone_namestringDNS name of the parent zone to put this in""
… and 10 more inputs
Outputs (12)
service_name — ECS service name
container_json
lb_dns_aliases — List of DNS aliases add for ALB
lb_zone_id — Route 53 zone ID of ALB provisioned for service (if present)
log_group_name — Cloudwatch log group name for service
service_iam_role_name — Name of the IAM Role for the ECS Task
service_arn — ECS service ARN
lb_dns_name — FQDN of ALB provisioned for service (if present)
task_iam_role_arn — ARN of the IAM Role for the ECS Task
task_iam_role_name — Name of the IAM Role for the ECS Task
service_iam_role_arn — ARN of the IAM Role for the ECS Service
cluster_arn — ECS cluster ARN
Resources (6)
aws_cloudwatch_log_groupaws_ecs_serviceaws_ecs_task_definitionaws_iam_roleaws_iam_role_policyaws_iam_role_policy_attachment
Details
FrameworkTerraform Module
LanguageHCL
Version3.1.4
Cloud AWS
★ Stars2
Forks12
Total downloads6.9k
Inputs50
Outputs12
Resources6
Examples5
LicenseMIT
Namespacedevops-workflow
Updated