This page contains information on troubleshooting the expressions that are defined during configuration to limit monitored cloud service instances. See Connect to AWS Using Role Delegation and Connect AppDynamics to AWS Using Access Key Credentials.

Single-Quote Matching

Expressions do not support single-quote matching. For example, `tags(Name) = 'AutomationTest || tags(Name) = 'invalid')` is considered a valid expression and `'AutomationTest || tags(Name) = 'invalid'` is considered the value. Ensure that quotes are matched before saving the expression.

Apostrophes

Expressions do not support the use of apostrophes (') in values. In the expression`tags(Name) = 'Automation'sTest'`, the tag value is considered `'Automation'` and the rest of the value is ignored.

Expression Examples

ExpressionDescription
(tags(name) = 'cloudcollectors' & tags(location) = 'us-west-2')Invalid. Missing a & within the expression group.
(tags(name) = 'cloudcollectors' && tags(location) = 'us-west-2'Invalid. Expressions within parentheses () are expression groups. Missing a closing parentheses ) after us-west-2
(tags(name) = 'cloudcollectors' | tags(location) = 'us-west-2')Invalid. Missing a | within the expression group.
(tags(name) = 'cloudcollectors' || tags(location) = 'us-west-2'Invalid. Expressions within parentheses () are expression groups. Missing a closing parentheses ) after us-west-2
(tags(name) = 'cloudcollectors'  tags(location) = 'us-west-2')Invalid. Missing logical operator within the expression group.
tags(Name) = 'cloudcollectors' & tags(location) = 'us-west-2'Invalid. Missing a & within the expression group.
tags(Name) = 'cloudcollectors' | tags(location) = 'us-west-2'Invalid. Missing a | within the expression group.
tags(Name) = 'AutomationTest' || tags(Name) = 'test')Valid. The trailing ) is ignored.

tags(Name) = 'cloudcollectors && tags(location) = 'us-west-2'

Valid. A apostrophe (') is missing after cloudcollectors. The tag value continues until the next apostrophe ('). In this example, the tag value is 'cloudcollectors && tags(location) = '.
tags(Name) = 'cloudcollectors' tags(location) = 'us-west-2'Valid. Everything after cloudcollectors is disregarded. The expression effectively becomes tags(Name) = 'cloudcollectors'.

Amazon Web Services, the AWS logo, AWS, and any other AWS Marks used in these materials are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries.