{"id":38839454,"url":"https://github.com/kyhau/bottlerocket-ecs-cdk","last_synced_at":"2026-01-17T13:59:16.738Z","repository":{"id":73217827,"uuid":"519435450","full_name":"kyhau/bottlerocket-ecs-cdk","owner":"kyhau","description":"This repository provides example Amazon CDK stacks to deploy containers to Amazon ECS using Bottlerocket OS for the compute","archived":false,"fork":false,"pushed_at":"2025-04-01T05:00:26.000Z","size":512,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T06:20:05.347Z","etag":null,"topics":["bottlerocket"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/kyhau.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-30T06:13:57.000Z","updated_at":"2024-09-02T10:39:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"af2bed69-0371-415a-8049-62ba189609c7","html_url":"https://github.com/kyhau/bottlerocket-ecs-cdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kyhau/bottlerocket-ecs-cdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyhau%2Fbottlerocket-ecs-cdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyhau%2Fbottlerocket-ecs-cdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyhau%2Fbottlerocket-ecs-cdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyhau%2Fbottlerocket-ecs-cdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyhau","download_url":"https://codeload.github.com/kyhau/bottlerocket-ecs-cdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyhau%2Fbottlerocket-ecs-cdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bottlerocket"],"created_at":"2026-01-17T13:59:16.049Z","updated_at":"2026-01-17T13:59:16.730Z","avatar_url":"https://github.com/kyhau.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amazon ECS Bottlerocket stacks for testing\n\nThis repository provides example Amazon CDK stacks to deploy containers to Amazon ECS using Bottlerocket OS for the compute.\nThis includes deploying a Bottlerocket [updater](https://github.com/bottlerocket-os/bottlerocket-ecs-updater/) in a stack with its [CloudFormation template](https://github.com/bottlerocket-os/bottlerocket-ecs-updater/blob/develop/stacks/bottlerocket-ecs-updater.yaml).\n\n\n## Deploy the stack\n\n(Assume account/region are bootstrapped)\n\n```bash\nARCH=arm64 cdk deploy k-ecs-bottlerocket-arm64 --require-approval never\n```\nOr\n```bash\nARCH=x86_64 cdk deploy k-ecs-bottlerocket-x86-64 --require-approval never\n```\n\n## Updater controller\n\nTo watch the updater in realtime, you can tail the logs to gain insight into what's happening.\n\nTo tail the logs via the AWS CLI, run the following command:\n\n```bash\naws logs tail --since 1h --follow \u003cLOG_GROUP_NAME_HERE\u003e\n```\n\nWhat is happening in realtime is the updater monitors for any hosts that are on an older version of the OS.\nWhen it finds hosts that are outdated, it will begin to work in waves.\nIt will determine which host to update, and begins by putting the host into a `DRAINING` state.\nNext, the scheduler will schedule those tasks to a new host which will come up because of capacity providers and cluster autoscaling.\nFinally, once the tasks are rescheduled the OS update will take place and when the update is complete it will reboot and register back into the cluster.\n\n### The Cluster\n\nNavigate to the ECS Console, and drill down into the ECS Instances.\nWhen the updater begins the update process, it will first set the instance to `DRAINING` as mentioned above.\nWhen this happens, pay attention as the scheduler will begin the process of rescheduling the tasks to a new instance.\nThis will take a couple of minutes as cluster autoscaling will kick in to bring up a new host to run the tasks.\n\n## Cleanup resources by running the following command\n\n```bash\ncdk destroy -f k-ecs-bottlerocket-arm64\ncdk destroy -f k-ecs-bottlerocket-x86-64\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyhau%2Fbottlerocket-ecs-cdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyhau%2Fbottlerocket-ecs-cdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyhau%2Fbottlerocket-ecs-cdk/lists"}