Giter Site home page Giter Site logo

image-shift's Introduction

image-shift

an opinionated tool for swapping / updating container images in AWS ECS task definitions.

this tool speeds up the process of updating container images in ECS task definitions. After specifying the target service and container, the tool will update the task definition and optionally deploy the new revision to the service.

image-shift -h
update container image(s) in given service

Usage:
  image-shift [flags]

Examples:
image-shift --cluster-name my-cluster --service api --container app=new-image-test:latest --container proxy=:bump-only-version

Flags:
  -r, --region string         region of your ECS cluster
  -n, --cluster-name string   name of your ECS cluster
  -s, --service string        select service in ECS cluster
  -c, --container strings     Name and version of the container
  -d, --deploy                update & deploy service to new task definition
  -h, --help                  help for image-shift

Example

# get container image from task definition using aws cli
$ aws ecs describe-task-definition --task-definition my-task-definition --query 'taskDefinition.containerDefinitions[0].image'

"my-reg.dkr.ecr.eu-central-1.amazonaws.com/my-application/backend:v1.2.0"

# update `app` image container to `:v1.2.3` form task definition that is deployed in ECS cluster `ecs-fargate-cluster` under service `api`
$ image-shift -n ecs-fargate-cluster -s api -r eu-central-1 -c app=:v1.2.3
 level=INFO msg="updating container image" container=app old=...backend:v1.2.0 new=...backend:v1.2.3
 level=INFO msg="new task revision created" revision=arn:aws:ecs:...:task-definition/task-example:42
 level=INFO msg="task update / deployment skipped"

# get container image from task definition using aws cli
$ aws ecs describe-task-definition --task-definition my-task-definition --query 'taskDefinition.containerDefinitions[0].image'

"my-reg.dkr.ecr.eu-central-1.amazonaws.com/my-application/backend:v1.2.3"

image-shift's People

Contributors

wakeful avatar

Watchers

 avatar

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.