Skip to content

oryanmoshe/ecs-wait-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

AWS ECS servicesStable waiter (with retries)

AWS provides a way to wait for certain ECS services to become stable, but this command times out after 10 minutes.
This action allows you to wait for services to become stable and retry the waiting process as many times as you want.

Inputs

ecs-cluster

Required - string
The ECS cluster that contains your services.

ecs-services

Required - string[]
A list of ECS services to make sure are stable.

retries

Optional - integer
The number of times you want to try the stability check. Default 2.

aws-access-key-id

Optional - string
Your AWS ACCESS_KEY_ID.
Must be provided as an input / defined as an environment variable.

aws-secret-access-key

Optional - string
Your AWS SECRET_ACCESS_KEY.
Must be provided as an input / defined as an environment variable.

aws-region

Optional - string
Your AWS REGION.
Must be provided as an input / defined as an environment variable.

verbose

Optional - boolean
Whether to print verbose debug messages to the console. Default false.

Outputs

retries

integer
How many retries happened until success.

Example usage

Using all available options

uses: oryanmoshe/[email protected]
with:
  aws-access-key-id: AKIAIOSFODNN7EXAMPLE
  aws-secret-access-key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
  aws-region: us-east-1
  ecs-cluster: my-ecs-cluster
  ecs-services: '["my-ecs-service-1", "my-ecs-service-2"]'
  retries: 5
  verbose: false

Minimal configuration

uses: oryanmoshe/[email protected]
with:
  ecs-cluster: my-ecs-cluster
  ecs-services: '["my-ecs-service-1", "my-ecs-service-2"]'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published