Roll the API fleet without losing capacity

Try this labAll SOA-C03 practice

Certification
SOA-C03
Format
Artifact workspace
Difficulty
medium
Estimated time
12 min
Automated checks
10

SCENARIO

A previous refresh of the production API fleet replaced too much capacity at once and interrupted requests. Launch template version 7 has now passed testing, and the api-refresh-errors alarm identifies a bad rollout. The replacement must preserve serving capacity and avoid recycling instances already on the approved configuration.

TASK

Repair refresh-fleet.sh to roll api-production to tested launch template lt-0a13d9c4e8f7246bb version 7.

  • Preserve 100% healthy desired capacity with at most 150% temporary capacity, skip matching instances, and roll back automatically if api-refresh-errors enters ALARM.
  • Keep the Rolling strategy and fail safely on script errors.

Part of SOA-C03 preparation