ECS Fargate Cluster

You are viewing article number 2 of 8 in the series GitHub just-in-time (JIT) self-hosted Runners on AWS Fargate

An ECS cluster, with support for capacity provider FARGATE, is essential in order to run tasks with
Launchtype=AWS Fargate“.

The ECS task definition for our Fargate JIT runner will be covered in a future post.

For now, we create a cluster with name fargate-cluster:

$ aws ecs create-cluster \
        --cluster-name fargate-cluster \
        --capacity-providers FARGATE FARGATE_SPOT

The output returns details for the cluster, including name, ARN, and capacity providers.

{
    "cluster": {
        "clusterArn": "arn:aws:ecs:<region>:<aws_acct_id>:cluster/fargate-cluster",
        "clusterName": "fargate-cluster",
        "status": "ACTIVE",
        "registeredContainerInstancesCount": 0,
        "runningTasksCount": 0,
        "pendingTasksCount": 0,
        "activeServicesCount": 0,
        "statistics": [],
        "tags": [],
        "settings": [
            {
                "name": "containerInsights",
                "value": "disabled"
            }
        ],
        "capacityProviders": [
            "FARGATE",
            "FARGATE_SPOT"
        ],
        "defaultCapacityProviderStrategy": []
    }
}
Series Navigation<< Overview of JIT GitHub Runners on AWS FargateStandard SQS Queue >>