Running Amazon EC2 Auto Scaling groups with associations - Amazon Systems Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon Systems Manager Change Manager is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see Amazon Systems Manager Change Manager availability change.

Running Amazon EC2 Auto Scaling groups with associations

The best practice when using associations to run Amazon EC2 Auto Scaling groups is to use tag targets. Not using tags might cause you to reach the association limit.

If all nodes are tagged with the same key and value, you only need one association to run your Amazon EC2 Auto Scaling group. The following procedure describes how to create such an association.

To create an association that runs Amazon EC2 Auto Scaling groups
  1. Ensure all nodes in the Amazon EC2 Auto Scaling group are tagged with the same key and value. For more instructions on tagging nodes, see Tagging Auto Scaling groups and instances in the Amazon Auto Scaling User Guide.

  2. Create an association by using the procedure in Working with associations in Systems Manager.

    If you're working in the console, choose Specify instance tags in the Targets field. For Instance tags, enter the Tag key and value for your Amazon EC2 Auto Scaling group.

    If you're using the Amazon Command Line Interface (Amazon CLI), specify --targets Key=tag:tag-key,Values=tag-value where the key and value match what you tagged your nodes with.