{"id":22571226,"url":"https://github.com/edsoncelio/severinoctl","last_synced_at":"2025-04-10T13:41:48.455Z","repository":{"id":64305386,"uuid":"389108304","full_name":"edsoncelio/severinoctl","owner":"edsoncelio","description":"A tool to automate some of my tasks in ECS/ECR.","archived":false,"fork":false,"pushed_at":"2021-08-05T03:47:59.000Z","size":33,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T12:21:30.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edsoncelio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-24T13:42:11.000Z","updated_at":"2022-02-19T18:47:33.000Z","dependencies_parsed_at":"2023-01-15T10:30:19.976Z","dependency_job_id":null,"html_url":"https://github.com/edsoncelio/severinoctl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsoncelio%2Fseverinoctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsoncelio%2Fseverinoctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsoncelio%2Fseverinoctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsoncelio%2Fseverinoctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edsoncelio","download_url":"https://codeload.github.com/edsoncelio/severinoctl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248226090,"owners_count":21068125,"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-12-08T01:15:57.032Z","updated_at":"2025-04-10T13:41:48.427Z","avatar_url":"https://github.com/edsoncelio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# severinoctl\n\nA tool to automate some tasks in ECS/ECR.\n\u003e Work in progress...\n\n## Prerequisites\n* awscli\n* working aws credentials\n* environment `AWS_REGION` exported\n\n## How to install\nGet a binary from https://github.com/edsoncelio/severinoctl/releases \n\n## Features\n - [x] Check if a tag exists in a ECR repository\n - [x] List task definition ARN revisions to a family\n - [x] Create a task definition revision to a new image version\n\n## Usage\n\n### To check if a specific image tag exists in a specific ECR repository:   \n`severinoctl checkTag --registry my-ecr-registry --tag 1.0`\n\nIf the tag exists, you will receive the following message:\n```\n✅ Tag '1.0' found! digest: \u003cIMAGE DIGEST HERE\u003e and repository: my-ecr-registry\n```\n\nOtherwise:\n```\n❌ Tag '1.0' not found, reason: \u003cREASON\u003e - try again!\n```\n\n### To list all the revisions related to a specific task definition:   \n`severinoctl listTask --name sample-app`\n\nAnd the output:\n```\nTaskDefinition ARN to revision 0: arn:aws:ecs:us-east-1:\u003cAWS ACCOUNT\u003e:task-definition/sample-app:1\nTaskDefinition ARN to revision 1: arn:aws:ecs:us-east-1:\u003cAWS ACCOUNT\u003e:task-definition/sample-app:2\n...\n```\n\n### To create a new task definition revision to a specific image:   \n`severinoctl updateTask --family sample-app --image myimage:v1.0.0`\n\nIf the image and tag already exists in the task definition:   \n`⚠️  The image is already registered`\n\nOtherwise:   \n```\n🔍 Actual image found: myimage:v1.0.0 - New image to use: 'myimage:v2.0.0'\n⌛  Creating the new revision...\n🎉 Revision 'arn:aws:ecs:us-east-1:\u003cAWS ACCOUNT\u003e:task-definition/sample-app:19' created!\n```\n\n## TODO\n - [ ] Add tests\n - [ ] Use aws sdk instead of aws cli\n - [x] Configure goreleaser\n - [ ] Add option to create a ECS task definition revision (and show a diff) - partial done\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsoncelio%2Fseverinoctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedsoncelio%2Fseverinoctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsoncelio%2Fseverinoctl/lists"}