Skip to main content

ECS Task Definition run

Project description

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"
}]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecs_task_run-0.0.7.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file ecs_task_run-0.0.7.tar.gz.

File metadata

  • Download URL: ecs_task_run-0.0.7.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for ecs_task_run-0.0.7.tar.gz
Algorithm Hash digest
SHA256 c7f1994f3ecb84d7262e3ff539d8d86bdd447b0f0fa8b0f4eefa480ddc1d8289
MD5 0029cd926fb7830ed315f66a429e9a5a
BLAKE2b-256 0723013ae708ffc13a2edd4c21d0e876c0ce15d9eab25602899964be5bc54d4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page