The following procedures show you how to update a tag-based query group.
Update a tag-based group by changing the resource types or tags in the query on which the group is based. You can also add or change the group's description.
-
Sign in to the AWS Resource Groups console
. -
In the navigation pane, under Saved Resource Groups
, choose the name of the group, and then choose Edit. Note
You can update only resource groups that you own. The Owner column shows account ownership for each resource group. Any groups with an account owner other than the one you're signed in to were created in AWS License Manager. For more information, see Host resource groups in AWS License Manager in the License Manager User Guide.
-
On the Edit group page, under Grouping criteria, add or remove resource types. You can have a maximum of 20 resource types in a query. To remove a resource type, choose X on the resource type's label. Choose View group resources to see how the changes affect your group's resource members. In this walkthrough, we add the resource type AWS::RDS::DBInstance to the query.
-
Still under Grouping criteria, edit the tags as needed. In this example, we filter for resources that have a tag key of Stage and add a tag value of Test. The tag value is optional, but narrows the results of the query further. To remove a tag, choose X on the tag's label.
-
In Additional information, you can edit the group description. You cannot edit a group's name after the group has been created.
-
(Optional) In Group tags, you can add or remove tags. Group tags are metadata about your resource group. They do not affect member resources. To change the resources that are returned by the resource group's query, edit the tags found under Grouping criteria.
Group tags are useful if you plan to make this group a member of a larger group. Specifying at least a tag key is required to create a group. Therefore, be sure to add at least a tag key in Group tags to groups that you plan to nest into larger groups.
-
Choose Preview group resources to retrieve the updated list of EC2 instances, S3 buckets, and Amazon RDS database instances in your account that match the specified tag keys. If you do not see resources in the list that you expect, be sure that the resources are tagged with tags that you specified inGrouping criteria.
-
When you are finished, choose Save changes.