Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 1.7 KB

README.md

File metadata and controls

76 lines (52 loc) · 1.7 KB

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/ecs-wait-action@v1.3
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/ecs-wait-action@v1.3
with:
  ecs-cluster: my-ecs-cluster
  ecs-services: '["my-ecs-service-1", "my-ecs-service-2"]'