{"id":28546686,"url":"https://github.com/yasuoza/ecs_instance_replace","last_synced_at":"2026-03-02T04:34:08.532Z","repository":{"id":37067351,"uuid":"290497981","full_name":"yasuoza/ecs_instance_replace","owner":"yasuoza","description":"Command for replace container instance backed by auto scaling group.","archived":false,"fork":false,"pushed_at":"2026-02-21T21:06:51.000Z","size":164,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-22T02:14:34.760Z","etag":null,"topics":["aws","ecs","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/yasuoza.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-26T13:03:29.000Z","updated_at":"2026-02-21T21:06:09.000Z","dependencies_parsed_at":"2024-04-05T21:25:48.912Z","dependency_job_id":"124af668-73f0-468f-92a6-997e653a4342","html_url":"https://github.com/yasuoza/ecs_instance_replace","commit_stats":{"total_commits":252,"total_committers":5,"mean_commits":50.4,"dds":"0.48809523809523814","last_synced_commit":"1a261a90390cb66a59e4ab83088caf01653aabc4"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/yasuoza/ecs_instance_replace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasuoza%2Fecs_instance_replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasuoza%2Fecs_instance_replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasuoza%2Fecs_instance_replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasuoza%2Fecs_instance_replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yasuoza","download_url":"https://codeload.github.com/yasuoza/ecs_instance_replace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasuoza%2Fecs_instance_replace/sbom","scorecard":{"id":1237139,"data":{"date":"2025-07-07","repo":{"name":"github.com/yasuoza/ecs_instance_replace","commit":"1b4898f7c9aa846032a69c39414e51e8fc24f536"},"scorecard":{"version":"v5.2.1-18-gbb9c347d","commit":"bb9c347dff6349d986baab6578a46d68a5524c62"},"score":1.5,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":0,"reason":"dangerous workflow patterns detected","details":["Warn: untrusted code checkout '${{ github.event.pull_request.head.sha }}': .github/workflows/pr_test.yml:17"],"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr_test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/pr_test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr_test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/pr_test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/yasuoza/ecs_instance_replace/test.yml/master?enable=pin","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/pr_test.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.2.1 not signed: https://api.github.com/repos/yasuoza/ecs_instance_replace/releases/37119934","Warn: release artifact v0.2.0 not signed: https://api.github.com/repos/yasuoza/ecs_instance_replace/releases/30182709","Warn: release artifact v0.1.0 not signed: https://api.github.com/repos/yasuoza/ecs_instance_replace/releases/30155517","Warn: release artifact v0.2.1 does not have provenance: https://api.github.com/repos/yasuoza/ecs_instance_replace/releases/37119934","Warn: release artifact v0.2.0 does not have provenance: https://api.github.com/repos/yasuoza/ecs_instance_replace/releases/30182709","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/yasuoza/ecs_instance_replace/releases/30155517"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#signed-releases"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0411 / GHSA-3839-6r69-m497 / GHSA-xg2h-wx96-xgxr","Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646","Warn: Project is vulnerable to: GO-2021-0227 / GHSA-3vm4-22fp-5rfm","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-09-06T23:22:53.952Z","repository_id":37067351,"created_at":"2025-09-06T23:22:53.952Z","updated_at":"2025-09-06T23:22:53.952Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29992326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aws","ecs","go"],"created_at":"2025-06-10T00:07:34.885Z","updated_at":"2026-03-02T04:34:08.504Z","avatar_url":"https://github.com/yasuoza.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ecs_instance_replace ![test](https://github.com/yasuoza/ecs_instance_replace/workflows/test/badge.svg?branch=master\u0026event=push) ![CodeQL](https://github.com/yasuoza/ecs_instance_replace/workflows/CodeQL/badge.svg?branch=master)\n\nReplace EC2(ECS Container) instance which is belongs to Auto Scaling Group.\n\n## Usage\n\n```bash\n$ ecs_instance_replace replace i-0d0123456789abcde\n\n2020/08/01 15:38:40 Target Cluster: arn:aws:ecs:us-west-2:123456789012:cluster/ecs-cluster\n2020/08/01 15:38:40 Target ASG: ecs-cluster-ecs-instance-asg\n2020/08/01 15:38:41 Auto Scaling group ecs-cluster-ecs-instance-asg is updated to desired_capacity: 3, max_size: 3\n2020/08/01 15:38:41 Waiting all container instances are ACTIVE\n2020/08/01 15:38:57 Waiting all container instances are ACTIVE\n2020/08/01 15:39:12 Waiting all container instances are ACTIVE\n2020/08/01 15:39:28 Waiting all container instances are ACTIVE\n2020/08/01 15:39:44 Waiting all container instances are ACTIVE\n2020/08/01 15:39:59 Container instance arn:aws:ecs:us-west-2:123456789012:container-instance/afa9cf13-9dd6-4de2-8c84-454c64746cc7 is marked DRAINING\n2020/08/01 15:39:59 Waiting running 6 tasks in arn:aws:ecs:us-west-2:123456789012:container-instance/afa9cf13-9dd6-4de2-8c84-454c64746cc7 (i-0d0123456789abcde) are STOPPED\n2020/08/01 15:40:15 Waiting running 0 tasks in arn:aws:ecs:us-west-2:123456789012:container-instance/afa9cf13-9dd6-4de2-8c84-454c64746cc7 (i-0d0123456789abcde) are STOPPED\n2020/08/01 15:40:15 Waiting all tasks are RUNNING\n2020/08/01 15:40:30 Waiting all tasks are RUNNING\n2020/08/01 15:40:34 Desired capacity of ecs-cluster-ecs-instance-asg is reverted\n2020/08/01 15:40:34 Auto Scaling group ecs-cluster-ecs-instance-asg is updated to desired_capacity: 2, max_size: 2\n2020/08/01 15:40:34 Waiting instance i-0d0123456789abcde to be terminated\n2020/08/01 15:40:49 Waiting instance i-0d0123456789abcde to be terminated\n2020/08/01 15:41:04 Waiting instance i-0d0123456789abcde to be terminated\n2020/08/01 15:41:19 Waiting instance i-0d0123456789abcde to be terminated\n2020/08/01 15:41:21 i-0d0123456789abcde is replaced by i-0f0123456789abcde\n```\n\n## LICENSE\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasuoza%2Fecs_instance_replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasuoza%2Fecs_instance_replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasuoza%2Fecs_instance_replace/lists"}