Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Creditas/ecs-task-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecs-task-run

Install

$ pip install ecs-task-run

Create new revision

To create a new release, you need to edit the setup.py file, stating the number of the new version.

After you merge, the Travis CI pipeline will automatically publish the new version at https://pypi.org/project/ecs-task-run/

Using

Running tasks:

$ ecs-task-run --cluster YOUR_CLUSTER_NAME --task YOUR_TASK_DEFINITION --image YOUR_IMAGE

or:

$ ecs-run task --cluster YOUR_CLUSTER_NAME --task YOUR_TASK_DEFINITION --image YOUR_IMAGE

or:

$ ecs-run task -c YOUR_CLUSTER_NAME -t YOUR_TASK_DEFINITION -i YOUR_IMAGE

Updating Services:

$ ecs-run update-service --cluster YOUR_CLUSTER_NAME --task YOUR_TASK_DEFINITION --image YOUR_IMAGE --service YOUR_SERVICE_NAME

or:

$ ecs-run update-service -c YOUR_CLUSTER_NAME -t YOUR_TASK_DEFINITION -i YOUR_IMAGE -s YOUR_SERVICE_NAME

Running a deploy config

To run a list of jobs from a file.

ecs-run run-jobs --path LOCAL_PATH_TO_CONFIG

or

ecs-run run-jobs -p LOCAL_PATH_TO_CONFIG

Example config:

[{
"job_option":"task",
"task":"YOUR_TASK_DEFINITION",
"image":"YOUR_IMAGE",
"cluster":"YOUR_CLUSTER_NAME"
},
{
"job_option":"update-service",
"task":"YOUR_TASK_DEFINITION",
"service":"YOUR_SERVICE_NAME",
"image":"YOUR_IMAGE",
"cluster":"YOUR_CLUSTER_NAME"
}]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages