Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 2.42 KB

README.md

File metadata and controls

63 lines (48 loc) · 2.42 KB

AWS ECS Fargate Cluster

Terraform module which provides an ECS cluster powered by AWS Fargate.

Usage

module "ecs_cluster" {
  source             = "brunordias/ecs-cluster/aws"
  version            = "~> 2.0.0"

  name               = "terraform-ecs-test"
  capacity_providers = ["FARGATE", "FARGATE_SPOT"]
  default_capacity_provider_strategy = {
    capacity_provider = "FARGATE_SPOT"
    weight            = 5
    base              = 1
  }
  container_insights = "enabled"
  tags = {
    environment = "development"
  }
}

Requirements

Name Version
terraform >= 0.13.1
aws >= 3.74.0

Providers

Name Version
aws >= 3.74.0

Modules

No modules.

Resources

Name Type
aws_ecs_cluster.main resource
aws_ecs_cluster_capacity_providers.this resource

Inputs

Name Description Type Default Required
capacity_providers List of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT. list(any)
[
"FARGATE",
"FARGATE_SPOT"
]
no
container_insights Enable Container Insights. Value values are enabled and disabled. string "disabled" no
default_capacity_provider_strategy The default capacity provider strategy configuration block. map(any) null no
name The name of the cluster. string n/a yes
tags A mapping of tags to assign to all resources. map(string) {} no

Outputs

Name Description
id The Amazon Resource Name (ARN) that identifies the cluster.