Menu
AWS Ops Automator
AWS Ops Automator

Appendix C: Resource Identification

The AWS Ops Automator uses a custom tag key (name) to identify resources that will receive automated actions. The default tag key is OpsAutomatorTaskList but you can modify it during initial configuration of the solution’s AWS CloudFormation template. The value of the OpsAutomatorTaskList tag contains a comma-separated list of tasks you want the solution to perform on that resource. For more information, see Step 4.

The solution also enables you to identify resources based on a tag name, a tag value, or both, using the Tag Filter parameter in the task-configuration templates. The parameter supports exact string matching and substring matching (with wildcards), and is case-sensitive. The following table gives acceptable input formats for the tag filter.

Tag filter format Description
* Any tagged resource

Note

For actions that can delete or terminate resources, you cannot use “*” as the name of the tag in the filter.

A* Tag keys that start with “A”
*A* Tag keys that contain “A”
*A Tag keys that end with “A”
\.*\d$ Tag keys that end with a digit
A=B Tag keys “A” with value “B”
A=B* Tag keys “A” with a value that starts with “B”
*=B Any tag with a value “B”
*=B* Any tag with a value that starts with “B”
*=\.*\d$ Any tag with a value that ends with a digit
A=B,C=D Tag keys “A” with value “B” or tag keys “C” with a value “D”

The following table gives examples of different tag filters and the resulting AWS Ops Automator action.

Tag filter AWS Ops Automator Action
Owner=DBAdmin Perform the task on resources with the Owner tag key with a value of DBAdmin.
Owner Perform the task on resources with the Owner tag key with any value.
*=DBAdmin Perform the task on resources with any tag key with a value of DBAdmin.
*test Perform the task on resources with a tag key that ends with test.
test* Perform the task on resources with a tag key that starts with test.
*=*test Perform the task on resources with any tag key with a value that ends with test.
*=test* Perform the task on resources with any tag key with a value that starts with test.
Owner=DBAdmin,Stack=Test Perform the task on resources with the Owner tag key with a value of DBAdmin or resources with the Stack tag key with a value of Test.