Skip to content

Pin ECS agent version on AL2 AMIs after EOL - #749

Open
sparrc wants to merge 1 commit into
mainfrom
sparrc-al2-eol-pin-agent
Open

Pin ECS agent version on AL2 AMIs after EOL#749
sparrc wants to merge 1 commit into
mainfrom
sparrc-al2-eol-pin-agent

Conversation

@sparrc

@sparrc sparrc commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

AL2 reached EOL on 2026-06-30. New ECS features are no longer supported on AL2 and the ECS agent version is pinned. Previously AL2 and AL2023 shared a single ecs_agent_version variable, so any AL2023 agent bump automatically flowed into AL2. Decouple them following the docker_version pattern.

  • Add pinned ecs_agent_version_al2 and ecs_init_rev_al2 variables; the existing ecs_agent_version/ecs_init_rev now belong to AL2023 and keep auto-updating.
  • Point all AL2 recipes and the shared build provisioner at the pinned al2-specific variables.
  • generate-release-vars.sh reads the pinned al2 variables for the al2 branch.
  • check-update.sh rebuilds AL2 only on a new base AMI; security-only and GPU/NVIDIA-only updates no longer trigger AL2 builds. AL2023 unchanged.
  • generate-changelog.sh reports al2 and al2023 ECS versions independently now that they can differ.

Assisted-by: Claude Code:claude-opus-4-8

Testing

  • verified make validate passes to ensure new al2 variable is present in all recipes
  • updated ecs_agent_version and verified this doesnt generate a new diff for AL2
  • ran ./scripts/check-update.sh al2 when there is and isnt an update to the base ami and verified correct output

Description for the changelog

  • housekeeping - AL2 Deprecation: pin agent version and only release AMIs on base AMI updates.

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AL2 reached EOL on 2026-06-30. New ECS features are no longer supported on
AL2 and the ECS agent version is pinned. Previously AL2 and AL2023 shared a
single ecs_agent_version variable, so any AL2023 agent bump automatically
flowed into AL2. Decouple them following the docker_version pattern.

- Add pinned ecs_agent_version_al2 and ecs_init_rev_al2 variables; the
  existing ecs_agent_version/ecs_init_rev now belong to AL2023 and keep
  auto-updating.
- Point all AL2 recipes and the shared build provisioner at the pinned
  al2-specific variables.
- generate-release-vars.sh reads the pinned al2 variables for the al2 branch.
- check-update.sh rebuilds AL2 only on a new base AMI; security-only and
  GPU/NVIDIA-only updates no longer trigger AL2 builds. AL2023 unchanged.
- generate-changelog.sh reports al2 and al2023 ECS versions independently
  now that they can differ.

Assisted-by: Claude Code:claude-opus-4-8
Signed-off-by: Cameron Sparr <sparrc@users.noreply.github.com>
@sparrc
sparrc requested a review from a team as a code owner July 22, 2026 22:17
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