The tf_aws_ecs_fargate repository provides Terraform scripts to set up an ECS Fargate cluster. It includes:
• ECS Cluster: Creates an ECS cluster with Fargate and Fargate Spot capacity providers.
• Variables: Allows configuration of the cluster name and weights for capacity providers.
Key Inputs:
• Cluster name
• Weights for Fargate and Fargate Spot capacity providers
Outputs:
• ECS cluster ARN
Name | Version |
---|---|
aws | ~> 5 |
Name | Version |
---|---|
aws | ~> 5 |
No modules.
Name | Type |
---|---|
aws_ecs_cluster.default | resource |
aws_ecs_cluster_capacity_providers.fargate | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cluster_name | Name of the ECS cluster | string |
n/a | yes |
fargate_spot_weight | Weight for the FARGATE_SPOT capacity provider | number |
1 |
no |
fargate_weight | Weight for the FARGATE capacity provider | number |
1 |
no |
Name | Description |
---|---|
ecs_cluster_arn | The ARN of the ECS cluster |