Deploy and maintenance
In-place patching, deploys, and reboots stop the application from answering.
If aggregation is included, Auto Scaling may replace the instance even though
the outage is expected. Use suppression
Pause evaluation on an instance for a duration so deploys and reboots do not look impaired. for a bounded window. The Verify lab runs enable and disable in order, with the console result after each command.
Option A: Suppress (bounded windows)
Section titled “Option A: Suppress (bounded windows)”Instance-level. Pass a duration, or omit it to suppress until you disable.
aws ec2 enable-application-status-check-suppression \ --instance-ids "$INSTANCE_ID" \ --duration-seconds 3600Overall status reports suppressed. Auto Scaling does not act. The instance card shows Application status Suppressed; the per-check line can still be passed.
Resume early:
aws ec2 disable-application-status-check-suppression \ --instance-ids "$INSTANCE_ID"Option B: Exclude from aggregation
Section titled “Option B: Exclude from aggregation”Keep evaluating and reporting individual status, but do not affect overall status or Auto Scaling. Use this for a long validation of a new check version.
aws ec2 modify-application-status-check \ --application-status-check-id "$ASC_ID" \ --aggregation excludedOption C: Disassociate
Section titled “Option C: Disassociate”For indefinite removal from a subset of instances, disassociate or drop the
matching tag. Overall status becomes not-applicable.