{"id":48211132,"url":"https://github.com/techservicesillinois/terraform-aws-ecs-cluster","last_synced_at":"2026-04-04T18:48:34.473Z","repository":{"id":40479528,"uuid":"194158770","full_name":"techservicesillinois/terraform-aws-ecs-cluster","owner":"techservicesillinois","description":"Provides an ECS cluster","archived":false,"fork":false,"pushed_at":"2025-03-27T03:13:10.000Z","size":31,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-27T04:23:39.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techservicesillinois.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-27T20:26:56.000Z","updated_at":"2024-09-04T16:21:01.000Z","dependencies_parsed_at":"2024-09-05T21:53:57.406Z","dependency_job_id":null,"html_url":"https://github.com/techservicesillinois/terraform-aws-ecs-cluster","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/techservicesillinois/terraform-aws-ecs-cluster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fterraform-aws-ecs-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fterraform-aws-ecs-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fterraform-aws-ecs-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fterraform-aws-ecs-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techservicesillinois","download_url":"https://codeload.github.com/techservicesillinois/terraform-aws-ecs-cluster/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techservicesillinois%2Fterraform-aws-ecs-cluster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31409470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-04T18:48:34.301Z","updated_at":"2026-04-04T18:48:34.444Z","avatar_url":"https://github.com/techservicesillinois.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ecs-cluster\n\n[![Terraform actions status](https://github.com/techservicesillinois/terraform-aws-ecs-cluster/workflows/terraform/badge.svg)](https://github.com/techservicesillinois/terraform-aws-ecs-cluster/actions)\n\nProvides an ECS cluster, and optionally EC2 container instances.\n\nExample Usage\n-----------------\n\n### Fargate cluster\n\n```hcl\nmodule \"fargate-cluster\" {\n  source = \"git@github.com:techservicesillinois/terraform-aws-ecs-cluster\"\n\n  name       = \"fargate-example\"\n  enable_ec2 = false\n}\n```\n### EC2 cluster\n\n```hcl\nmodule \"ecs-cluster\" {\n  source = \"git@github.com:techservicesillinois/terraform-aws-ecs-cluster\"\n\n  name             = \"ec2-example\"\n  desired_capacity = 1\n  instance_type    = \"t4g.small\"\n  max_size         = 4\n  min_size         = 1\n\n\n  # Include security groups for each ALB forwarding to this cluster.\n  vpc                  = \"my-vpc\"\n  subnet_type          = \"private\"\n  security_group_names = [\"my-vpc-alb-private\", \"my-vpc-alb-public\"]\n}\n```\n\nArgument Reference\n-----------------\n\nThe following arguments are supported:\n\n* `associate_public_ip_address` - (Optional) Associate a public IP\n  address with the ECS container instances. (The default is `true`).\n\n* `desired_capacity` - (Optional) Desired number of EC2 instances.\n  Applies only to EC2 clusters.\n\n* `efs_volume_name` - (Optional) EFS volume name. Applies only to EC2 clusters.\n\n* `enable_ec2` - (Optional) Set to `false` to manage a Fargate cluster.\nDefault is `true`, which means the cluster will consist of\ndedicated EC2 instances.\n\n* `iam_instance_profile` - (Optional) The IAM instance profile to\n   associate with the ECS container instances. The default is\n   `ecsInstanceRole`). Applies only to EC2 clusters.\n\n* `ingress_security_group_ids` - (Optional) A list of security group\n  id(s) that can directly communicate with containers. Applies only to EC2 clusters.\n\n* `ingress_security_group_names` - (Optional) A list of security group\n  name(s) that can directly communicate with containers. Applies only to EC2 clusters.\n\n* `instance_type` - (Optional) The EC2 instance type to use for the\n  container instances. Applies only to EC2 clusters.\n\n* `key_name` - (Optional) Name of an AWS key pair to use for the\n  container instances. Applies only to EC2 clusters.\n\n* `min_size` - (Optional) Minimum number of EC2 instances.\n  Applies only to EC2 clusters.\n\n* `max_size` - (Optional) Maximum number of EC2 instances.\n  Applies only to EC2 clusters.\n\n* `name` - (Required) The name of the Amazon ECS cluster to create.\n\n* `security_group_ids` - (Optional) A list of security group ID(s).\nApplies only to EC2 clusters.\n\n* `security_group_names` - (Optional) A list of security group name(s)\n  associated with the EC2 container instances. Applies only to EC2 clusters.\n\n* `ssh_cidr_blocks` - (Optional) List of CIDR blocks to use for SSH\n  access. Applies only to EC2 clusters.\n\n* `subnet_ids` - (Optional) A list of subnet ids to use for the\n  container instances. Applies only to EC2 clusters.\n\n* `subnet_type` - (Optional) Subnet type (e.g., 'campus', 'private', 'public') for resource placement. Applies only to EC2 clusters.\n\n* `tags` - (Optional) Tags to be applied to resources where supported.\n \n* `template` - (Optional) Template used to configure underlying EC2\n  instances. Applies only to EC2 clusters.\n\n* `vpc` - (Optional) The name of the VPC in which to place the cluster.\nApplies only to EC2 clusters.\n\n`setting`\n-------\n\nA `setting` block is a list of maps, each map containing a name and value pair\ndescribing cluster settings to be applied. The `setting` block is optional.\n\nCurrently, only one setting is supported.\n\n* `name` - (Required) The setting name.\n\n* `value` – (Optional) The setting value corresponding to `name`.\n\nCurrently, the only value allowed for `name` is `containerInsights`. The\ncorresponding `value` in the map must be either `enabled` or `disabled`.\n\n```\n  setting = [\n    {\n      name  = \"containerInsights\"\n      value = \"enabled\"\n    }\n  ]\n```\n\nAttributes Reference\n--------------------\n\nThe following attributes are exported:\n\n* `id` - The Amazon Resource Name (ARN) of the cluster.\n\n* `name` - The cluster name.\n\n* `security_groups` - A map whose keys are the security group name, and whose values are the corresponding security group ID. Applies only to EC2 clusters. \n\n* `setting` – A map containing each of the defined `setting` name/value pairs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechservicesillinois%2Fterraform-aws-ecs-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechservicesillinois%2Fterraform-aws-ecs-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechservicesillinois%2Fterraform-aws-ecs-cluster/lists"}