From d70977a6e8621b3e0bb24488e1b11192abfcdd25 Mon Sep 17 00:00:00 2001 From: Marko Tibold Date: Thu, 9 Sep 2021 10:37:50 +0200 Subject: [PATCH 01/63] Update cli.py Fix typos --- ecs_deploy/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ecs_deploy/cli.py b/ecs_deploy/cli.py index d60a24a..d6b3acf 100644 --- a/ecs_deploy/cli.py +++ b/ecs_deploy/cli.py @@ -83,7 +83,7 @@ def deploy(cluster, service, tag, image, command, health_check, cpu, memory, mem Redeploy or modify a service. \b - CLUSTER is the name of your cluster (e.g. 'my-custer') within ECS. + CLUSTER is the name of your cluster (e.g. 'my-cluster') within ECS. SERVICE is the name of your service (e.g. 'my-app') within ECS. When not giving any other options, the task definition will not be changed. @@ -217,7 +217,7 @@ def cron(cluster, task, rule, image, tag, command, cpu, memory, memoryreservatio Update a scheduled task. \b - CLUSTER is the name of your cluster (e.g. 'my-custer') within ECS. + CLUSTER is the name of your cluster (e.g. 'my-cluster') within ECS. TASK is the name of your task definition (e.g. 'my-task') within ECS. RULE is the name of the rule to use the new task definition. """ @@ -350,7 +350,7 @@ def scale(cluster, service, desired_count, access_key_id, secret_access_key, reg Scale a service up or down. \b - CLUSTER is the name of your cluster (e.g. 'my-custer') within ECS. + CLUSTER is the name of your cluster (e.g. 'my-cluster') within ECS. SERVICE is the name of your service (e.g. 'my-app') within ECS. DESIRED_COUNT is the number of tasks your service should run. """ @@ -406,7 +406,7 @@ def run(cluster, task, count, command, env, env_file, s3_env_file, secret, launc Run a one-off task. \b - CLUSTER is the name of your cluster (e.g. 'my-custer') within ECS. + CLUSTER is the name of your cluster (e.g. 'my-cluster') within ECS. TASK is the name of your task definition (e.g. 'my-task') within ECS. COUNT is the number of tasks your service should run. """ From b285a1facfd62b727538921410285a33fc994869 Mon Sep 17 00:00:00 2001 From: Mark Heiges Date: Mon, 10 Jan 2022 10:21:14 -0500 Subject: [PATCH 02/63] add support for runtimePlatform in task definition --- ecs_deploy/cli.py | 9 ++++++--- ecs_deploy/ecs.py | 47 +++++++++++++++++++++++++++++++++-------------- tests/test_cli.py | 24 ++++++++++++++++++++++++ tests/test_ecs.py | 13 ++++++++++++- 4 files changed, 75 insertions(+), 18 deletions(-) diff --git a/ecs_deploy/cli.py b/ecs_deploy/cli.py index d60a24a..54ce8c7 100644 --- a/ecs_deploy/cli.py +++ b/ecs_deploy/cli.py @@ -48,6 +48,7 @@ def get_client(access_key_id, secret_access_key, region, profile): @click.option('-l', '--log', type=(str, str, str, str), multiple=True, help='Adds or changes a log configuration in the container description (Not available for Fargate):