Skip to content

Migrate ECS host default to AL2023 - #48

Merged
0lut merged 2 commits into
mainfrom
codex/migrate-ecs-al2023
Jun 8, 2026
Merged

Migrate ECS host default to AL2023#48
0lut merged 2 commits into
mainfrom
codex/migrate-ecs-al2023

Conversation

@0lut

@0lut 0lut commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • switch the ECS EC2 host default from Amazon Linux 2 to a pinned Amazon Linux 2023 ARM64 ECS-optimized AMI
  • pin the host AMI to the latest us-west-2 recommendation verified on June 8, 2026: ami-0ac01d3c8b7a34f9d / al2023-ami-ecs-hvm-2023.0.20260527-kernel-6.1-arm64
  • add a guarded downtime migration script that scales the service to zero, terminates the existing host, and redeploys through the normal deploy/smoke path
  • document the AL2023 maintenance-window flow, rollback override, post-migration Git remote checks, and how to intentionally advance the pinned AMI later

Deployment validation

  • rebased on latest main f286fe3
  • preview deployed with scripts/aws/deploy-preview.sh HEAD
  • dev migrated with CONFIRM_DOWNTIME=true scripts/aws/migrate-ecs-host-al2023.sh
    • EC2 host i-01631e0cfaf39042d is running ami-0ac01d3c8b7a34f9d
    • ECS service gitmirrorcache-arm-ec2-api is ACTIVE desired=1 running=1
    • ALB target healthy on port 8080
  • removed old AL2 preview stacks dc77d9c and cc125cc to clear affected preview hosts

Smoke tests

  • bash -n scripts/aws/migrate-ecs-host-al2023.sh scripts/aws/deploy-ecs-ec2-ebs.sh scripts/aws/deploy-preview.sh scripts/aws/deploy-and-smoke.sh scripts/aws/smoke-test.sh
  • git diff --check origin/main..HEAD
  • preview /healthz and /metrics passed
  • preview git ls-remote, shallow clone, and /v1/materialize against github.com/octocat/Hello-World passed
  • dev /healthz and /metrics passed
  • dev git ls-remote, shallow clone, and /v1/materialize against github.com/octocat/Hello-World passed
  • active gitmirrorcache EC2 inventory checked: dev-arm and current preview ECS hosts are on ami-0ac01d3c8b7a34f9d; gitmirrorcache-dev-devbox is AL2023 x86_64

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@0lut
0lut force-pushed the codex/migrate-ecs-al2023 branch from e525076 to 0d2d298 Compare June 8, 2026 17:40
@0lut
0lut merged commit f43a0c7 into main Jun 8, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant