ecs-fargate

cn-terraform/ecs-fargate/aws

Terraform Module HCL AWS

AWS ECS Fargate Terraform Module

Install
module "ecs-fargate" {
source = "cn-terraform/ecs-fargate/aws"
version = "2.0.60"
}
⭐ Source on GitHub 📦 Registry page
README

AWS ECS Fargate Terraform Module # This Terraform module deploys an AWS ECS Fargate service. ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate/actions?query=workflow%3Aterraform) ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate) ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate) ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate) ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate) ![](https://github.com/cn-terraform/terraform-aws-ecs-fargate) Usage Check valid versions on: Github Releases: Terraform Module Registry: Install pre commit hooks. Please run this command right after cloning the repository. pre-commit install For that you may need to install the folowwing tools: Pre-commit Terraform Docs In order to run all checks at any

Inputs (50)
NameTypeDescriptionDefault
private_subnets_idslist(any)The private subnets associated with the task or service. required
vpc_idstringID of the VPC required
public_subnets_idslist(any)The public subnets associated with the task or service. required
deployment_minimum_healthy_percentnumber(Optional) The lower limit (as a percentage of the service's desiredCount) of th100
lb_idle_timeoutnumber(Optional) The time in seconds that the connection is allowed to be idle. Defaul60
tagsmap(string)Resource tags{}
port_mappingslist(object({ containerPorThe port mappings to configure for the container. This is a list of maps. Each m[ { "containerPort": 80, "host
secretslist(object({ name = The secrets to pass to the container. This is a list of maps[]
deployment_controllerlist(any)(Optional) Deployment controller[ { "type": "ECS" } ]
ordered_placement_strategylist(any)(Optional) Service level strategy rules that are taken into consideration during[]
additional_lbsmap(object ( { Additional load balancers to add to ECS service{}
lb_target_group_health_check_pathstringThe destination for the health check request."/"
container_memorynumber(Optional) The amount of memory (in MiB) to allow the container to use. This is 4096
entrypointlist(string)The entry point that is passed to the container[]
linux_parametersobject({ capabilities = obLinux-specific modifications that are applied to the container, such as Linux kenull
start_timeoutnumberTime duration (in seconds) to wait before giving up on resolving dependencies fonull
s3_bucket_server_side_encryption_keystring(Optional) The AWS KMS master key ID used for the SSE-KMS encryption. This can onull
lb_target_group_health_check_intervalnumber(Optional) The approximate amount of time, in seconds, between health checks of 30
enable_ecs_managed_tagsbool(Optional) Specifies whether to enable Amazon ECS managed tags for the tasks witfalse
working_directorystringThe working directory to run commands inside the containernull
ulimitslist(object({ name = Container ulimit settings. This is a list of maps, where each map should contain[]
repository_credentialsmap(string)Container repository credentials; required when using a private repo. This map null
privilegedboolWhen this variable is `true`, the container is given elevated privileges on the null
… and 10 more inputs
Outputs (44)
aws_lb_lb_id — The ARN of the load balancer (matches arn).
aws_ecs_cluster_cluster_name — The name of the cluster
aws_iam_role_ecs_task_execution_role_unique_id — The stable and unique string identifying the role.
aws_lb_lb_arn_suffix — The ARN suffix for use with CloudWatch Metrics.
aws_iam_role_ecs_task_execution_role_name — The name of the role.
aws_security_group_lb_access_sg_name — The name of the security group
lb_http_tgs_arns — List of HTTP Target Groups ARNs
lb_https_tgs_ids — List of HTTPS Target Groups IDs
lb_http_listeners_arns — List of HTTP Listeners ARNs
aws_ecs_service_service_name — The name of the service.
aws_ecs_service_service_cluster — The Amazon Resource Name (ARN) of cluster which the service runs on.
aws_iam_role_ecs_task_execution_role_id — The ID of the role.
container_name — Name of the container
aws_security_group_lb_access_sg_description — The description of the security group
lb_https_tgs_names — List of HTTPS Target Groups Names
aws_iam_role_ecs_task_execution_role_arn — The Amazon Resource Name (ARN) specifying the role.
aws_ecs_task_definition_td_arn — Full ARN of the Task Definition (including both family and revision).
aws_security_group_lb_access_sg_id — The ID of the security group
aws_security_group_lb_access_sg_ingress — The ingress rules.
ecs_tasks_sg_arn — ${var.name_prefix} ECS Tasks Security Group - The ARN of the security group
ecs_tasks_sg_name — ${var.name_prefix} ECS Tasks Security Group - The name of the security group
aws_ecs_cluster_cluster_arn — The Amazon Resource Name (ARN) that identifies the cluster
aws_iam_role_ecs_task_execution_role_create_date — The creation date of the IAM role.
aws_ecs_task_definition_td_family — The family of the Task Definition.
aws_lb_lb_arn — The ARN of the load balancer (matches id).
aws_lb_lb_zone_id — The canonical hosted zone ID of the load balancer (to be used in a Route 53 Alias record).
aws_security_group_lb_access_sg_egress — The egress rules.
lb_http_tgs_ids — List of HTTP Target Groups IDs
lb_http_tgs_names — List of HTTP Target Groups Names
aws_ecs_task_definition_td_revision — The revision of the task in a particular family.
… and 14 more outputs
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.60
Cloud AWS
★ Stars87
Forks58
Total downloads121.5k
Inputs50
Outputs44
Examples1
LicenseApache-2.0
Namespacecn-terraform
Updated