Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

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

License

NotificationsYou must be signed in to change notification settings

qiqiming/python-ecs-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHubPyPI

inspired byhttps://github.com/silinternational/ecs-deploy, rewrite use python3

This script use ecs client of boto3 to instigate an automatic blue/green deployment.It only updates the tag of the images in the task definition with the same image name you providedThis allows you to easily implement CI/CD

usage

ecs-deployoptional arguments:  -h, --help                                                        show this help message and exit  -k AWS_ACCESS_KEY, --aws-access-key AWS_ACCESS_KEY                AWS Access Key ID. May also be set as environment variable AWS_ACCESS_KEY_ID  -s AWS_SECRET_ACCESS_KEY, --aws-secret-key AWS_SECRET_ACCESS_KEY  AWS Secret Access Key. May also be set as environment variable AWS_SECRET_ACCESS_KEY  -r region_name, --region region_name                              AWS Region Name. May also be set as environment variable AWS_DEFAULT_REGION  -c cluster_name, --cluster cluster_name                           Name of ECS cluster  -n service_name, --service-name service_name                      Name of service to deploy  -i images [images ...], --images images [images ...]              Name of Docker image to run(support multiple images)                                                                    ex: --images repo/image:1.0 repo2/image2:8.0  --scale nums                                                      Modifies the number(positive) of container instances of the current Task Definition

example

You have a task definition that contains two docker images(aaa/foo:1.0, bbb/bar:2.0)

Update the service with the new image:

ecs-deploy -c test_cluster -n test_service -i aaa/foo:1.1 bbb/bar:3.0

Scale current service number of tasks

ecs-deploy -c test_cluster -n test_service --scale 5

Installation

pip install python-ecs-deploy

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp