Skip to content
play

GitHub Action

AWS ECS Scale up/down

1.2.0 Latest version

AWS ECS Scale up/down

play

AWS ECS Scale up/down

Update the desired number of tasks for an ECS service

Installation

Copy and paste the following snippet into your .yml file.

              

- name: AWS ECS Scale up/down

uses: zachelrath/[email protected]

Learn more about this action in zachelrath/github-action-ecs-scale

Choose a version

github-action-ecs-scale

The purpose of this repository is to provide a GitHub Action to scale an ECS service's desired count up/down to a desired value.

What it does

  1. Uses the AWS SDK for JavaScript to update the specified ECS Service's desired count attribute to a given value.

General Usage

ecs-scaledown:
  name: Scale down ECS Service to zero
  runs-on: ubuntu-latest
  steps:
    - name: ecs-scaledown
      uses: zachelrath/github-action-ecs-scale
      with:
        service: your-service
        cluster: your-cluster
        desired-count: 0