You can use resource groups to organize your AWS resources. Resource groups make it easier to manage, monitor, and automate tasks on large numbers of resources at one time.
AWS Resource Groups provides two general methods for defining a resource group. Both methods involve using a query to identify the members for a group.
The first method relies on tags applied to AWS resources to add resources to a group. Using this method, you apply the same tag key-value pairs to resources of various types in your account and then use the AWS Resource Groups service to create a group based on that tag pair or multiple pairs.
The second method is based on resources available in an individual AWS CloudFormation stack. Using this method, you choose an AWS CloudFormation stack, and then choose resource types in the stack that you want to be in the group.
You can specify a resource group as the target for the following Systems Manager capabilities:
A command you run in Run Command.
An automation workflow you run in Automation.
An association you create in State Manager.
A maintenance window you create in Maintenance Windows.
A package installation or update operation in Distributor.
In this lab we will cover creating a Resource Group and some tags that will be used later on in the Patch Manager lab.
us-east-1
is selected.AWS::EC2::Instance
.App1
and App2
from the four instances.Patch Group
.App
.Patch Group
.App
.Key: App
and Value: Front-end
.
Patch Group
: Web
.