iys9zpcr/ECS-Deploy

Simple shell script for initiating blue-green deployments on Amazon EC2 Container Service (ECS)

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
aws_access_key_cmd--aws-access-keyyes—
aws_access_keyAWS Access Key ID. May also be set as environment variable AWS_ACCESS_KEY_IDyes—
aws_secret_key_cmd--aws-secret-keyyes—
aws_secret_keyAWS Secret Access Key. May also be set as environment variable AWS_SECRET_ACCESS_KEYyes—
service_name_cmd--service-name——
service_nameName of service to deployno—
task_definition_cmd--task-definition——
task_definitionName of task definition to deployno—
region_cmd--region——
regionAWS Region Name. May also be set as environment variable AWS_DEFAULT_REGIONyes—
profile_cmd--profile——
profileAWS Profile to use - If you set this aws-access-key, aws-secret-key and region are not neededyes—
cluster_cmd--cluster——
clusterName of ECS clusteryes—
image_cmd--image——
imageName of Docker image to run, ex: repo/image:latestyes—
aws_assume_role_cmd--aws-assume-role——
aws_assume_roleARN for AWS Role to assume for ecs-deploy operations.no—
desired_count_cmd--desired-count——
desired_countThe number of instantiations of the task to place and keep running in your service.no—
min_cmd--min—--min
minminumumHealthyPercent: The lower limit on the number of running tasks during a deployment.no100
max_cmd--max—--max
maxmaximumPercent: The upper limit on the number of running tasks during a deployment.no200
timeout_cmd--timeout—--timeout
timeoutScript monitors ECS Service for new task definition to be running.no90
tag_env_var_cmd--tag-env-var——
tag_env_varGet image tag name from environment variable. If provided this will override value specified in image name argument.no—
tag_only_cmd--tag-only——
tag_onlyNew tag to apply to all images defined in the task (multi-container task). If provided this will override value specified in image name argument.no—
max_definitions_cmd--max-definition——
max_definitionsNumber of Task Definition Revisions to persist before deregistering oldest revisions.no—
enable_rollback_cmd--enable-rollback——
enable_rollbackRollback task definition if new version is not running before TIMEOUTno—
use_latest_task_def_cmd--use-latest-task-def——
use_latest_task_defWill use the most recently created task definition as its base, rather than the last used.no—
force_new_deployment_cmd--force-new-deployment——
force_new_deploymentForce a new deployment of the service.no—
run_task_cmd--run-task——
run_taskRun created task now. If you set this, service-name are not needed.no—
wait_for_success_cmd--wait-for-success——
wait_for_successWait for task execution to complete and to receive the exitCode 0.no—
skip_deployments_check_cmd--skip-deployments-check——
skip_deployments_checkSkip deployments check for services that take too long to drain old tasks——
copy_task_definition_tags_cmd--copy-task-definition-tags——
copy_task_definition_tagsCopy the existing task definition tags to the new task definition revisionno—
verboseVerbose outputno—
namedescription
statusstatus