Skip to content

A simple script to wait ecs run-task completion to run task synchronously

Notifications You must be signed in to change notification settings

nikushi/ecs-run-task-waiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecs-run-task-waiter

A simple script to wait ecs run-task completion to run task synchronously

Usage

##### ecs-run-task-waiter #####
Simple script for waiting run-task execution completion on Amazon Elastic Container Service

Optional arguments:
    -r | --region                AWS Region Name. May also be set as environment variable AWS_DEFAULT_REGION
    -p | --profile               AWS Profile to use - If you set this aws-access-key, aws-secret-key and region are needed
    --output-log                 Output task logs. Default false
    -t | --timeout               Default is 90s. Script monitors ECS Service for new task definition to be running.
    -v | --verbose               Verbose output
    --version                    Print version
Requirements:
    aws:  AWS Command Line Interface
    jq:   Command-line JSON processor
Examples:
  aws ecs run-task --profile foo --region ap-northeast-1 --cluster mycluster --task-definition mytask \
    --network-configuration '{"awsvpcConfiguration":{"subnets":["subnet-abc"],"securityGroups":["sg-123"],"assignPublicIp":"ENABLED"}}' \
    --launch-type FARGATE | ecs-run-task-waiter -r ap-northeast-1  -p foo

Development

Release

To make a release with the executable:

  1. Change version num, then commit it to git.
  2. Release them with a new release by TAG=v0.1.0 make release

About

A simple script to wait ecs run-task completion to run task synchronously

Resources

Stars

Watchers

Forks

Packages

No packages published