Giter VIP home page Giter VIP logo

python-ecs-deploy's Introduction

python-ecs-deploy

GitHub PyPI

inspired by https://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 provided This allows you to easily implement CI/CD

usage

ecs-deploy

optional 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

python-ecs-deploy's People

Contributors

qiqiming avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

nguyenvandan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.