/tf_aws_ecs_fargate

Adds an ECS Fargate Cluster

Primary LanguageHCL

tf_aws_ecs_fargate

Overview

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

Requirements

Name Version
aws ~> 5

Providers

Name Version
aws ~> 5

Modules

No modules.

Resources

Name Type
aws_ecs_cluster.default resource
aws_ecs_cluster_capacity_providers.fargate resource

Inputs

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

Outputs

Name Description
ecs_cluster_arn The ARN of the ECS cluster