The deployment group defines the target fleet
How EC2 deployment groups control in-place and blue/green rollouts through fleet selection, healthy-host limits, and rollback conditions. · advanced
An EC2 deployment group binds fleet selection to deployment behavior: deployment type, deployment configuration, load balancer integration, alarms, and automatic rollback settings. The application groups revisions and deployment groups; the deployment group identifies which instances a deployment targets. Treat its selectors as production controls, not descriptive labels.
Instances can be selected through EC2 tags or associated EC2 Auto Scaling groups. With multiple tag groups, selection uses OR within each group, AND across groups: an instance must match at least one filter in every group. For example, group A containing Environment=prod and Environment=staging, combined with group B containing Role=api, selects production or staging API instances—not every production instance.
Auto Scaling group association ties selection to group membership rather than a hand-maintained instance list. Neither selection method proves that the selected fleet has enough spare capacity for an update. Fleet selection determines the deployment scope; the deployment configuration controls how that scope is updated.