{"id":18942340,"url":"https://github.com/bugcrowd/ecs-service-image-updater","last_synced_at":"2025-08-20T18:34:14.598Z","repository":{"id":27014499,"uuid":"111614410","full_name":"bugcrowd/ecs-service-image-updater","owner":"bugcrowd","description":"Update an ECS service to use a new Docker image","archived":false,"fork":false,"pushed_at":"2024-12-09T01:33:49.000Z","size":376,"stargazers_count":12,"open_issues_count":2,"forks_count":12,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-12-10T07:10:59.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugcrowd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-21T23:48:40.000Z","updated_at":"2024-11-29T00:01:15.000Z","dependencies_parsed_at":"2024-06-07T00:44:07.006Z","dependency_job_id":"2c3ef332-8a38-4422-83dd-b7b31bf898e7","html_url":"https://github.com/bugcrowd/ecs-service-image-updater","commit_stats":{"total_commits":32,"total_committers":6,"mean_commits":5.333333333333333,"dds":0.25,"last_synced_commit":"57672cfde48a972b2aa27383accbadd459a4c029"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugcrowd%2Fecs-service-image-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugcrowd%2Fecs-service-image-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugcrowd%2Fecs-service-image-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugcrowd%2Fecs-service-image-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugcrowd","download_url":"https://codeload.github.com/bugcrowd/ecs-service-image-updater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230445927,"owners_count":18227060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T12:32:28.503Z","updated_at":"2024-12-19T14:08:18.697Z","avatar_url":"https://github.com/bugcrowd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ECS Service Image Updater\n=========================\n\nECS Service Image Updater assists with updating an ECS Service to use a new Docker image. If all you are changing is the image (eg new version of your application) it can be cumbersome to create a new Task Definition. It will copy the current running Task Definition in the Service, update the image, publish the new Task Definition and update the Service to use the new Task Definition.\n\n**NOTE:** We have moved the package under our `bugcrowd` NPM organization - this will be the only package location maintained going forward.\n\nCLI Usage\n---------\n\n```\nOptions:\n  --help                    Show help                                  [boolean]\n  --version                 Show version number                        [boolean]\n  --image                   Docker image and tag                      [required]\n  --container-name          Container to update in the ECS Task Definition.\n                            Conflicts with container-names.\n  --container-names         List of containers to update in the ECS Task\n                            Definition. Comma separated. Conflicts with\n                            container-name.\n  --service-name            ECS Service to update\n  --task-definition-family  Task Definition Family create the new Task\n                            Definition in\n  --cluster-arn             Arn of the ECS Cluster for which the Service exists\n                            on. Used in conjunction with service-name\n  --output-arn-only         Output the new Task Definition Arn only\n```\n\n### Examples\n\n#### Update an ECS Service to use a new image\n`$ ecs-service-image-updater --cluster-arn arn:aws:ecs:us-east-1:123456789:cluster/cluster --image image:tag --container-name app --service-name app`\n\n#### Create new Task Definition from latest Task Definition in a Task Definition Family\n`$ ecs-service-image-updater --image image:tag --container-name app --task-definition-family app`\n\nModule Usage\n------------\n\n```js\nconst updater = require('ecs-service-image-updater');\n\nconst options = {\n  clusterArn: 'clusterArn',\n  serviceName: 'serviceName',\n  containerNames: ['containerName'],\n  image: 'image:tag'\n}\n\nupdater(options)\n  .then((taskDefinitionArn) =\u003e {\n    console.log(`Done. New task definition: ${taskDefinitionArn}`);\n  })\n  .catch((err) =\u003e {\n    console.log(err);\n  });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugcrowd%2Fecs-service-image-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugcrowd%2Fecs-service-image-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugcrowd%2Fecs-service-image-updater/lists"}