How to configure AWS probe templates to filter based on EC2 tags

Document ID : KB000010821
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Customers using the AWS probe may wish to apply templates only to EC2 instances with specific tag/value combinations. This document provides a demonstration of that process.

Instructions:

In AWS itself, you will go to ‘Tags’ and from there, ‘Manage Tags’

 

Here, select one or more instances and create a tag/value pair.  In our example, I am going to tag one instance with the key “Server” and value “web” and I will tag another instance with the key “Server” and value “mail”.

aws_1.jpg

aws_2.jpg

When that’s done we have two instances with the same tag but different values as seen below:

aws_3.jpg

 

Next we go into the AWS probe configuration in Admin Console and click on the top-level “aws” node and access ‘AWS E2 Tags’ and create a new tag:

aws_4.jpg

Here you will enter the NAME (not value) of the EC2 tag(s) you have configured above.  This lets the probe know which EC2 tags you have configured.  For this example, we will enter “Server” as the EC2 tag, and “Tag Name” for the EC2 Label Type  since "Server" is the tag we created earlier:

aws_5.jpg

 

 Save this configuration, and now you will see the EC2 tag listed:

 

aws_6.jpg

Now, go to the Template Editor.

 

When configuring your template, you will go to the EC2 node, and Auto Filter:

aws_7.jpg

Now when you go to create a new Rule, you will see the EC2 tag(s) you configured available in the dropdown menu:

 

aws_8.jpg

 

Select this and then enter the value you want to match on – in this example I am choosing to monitor only servers with the “Server” EC2 tag that has a value of “web”:

 

aws_9.jpg

 

Save the template.

 

 

Now this template will only be applied to EC2 resources with the configured tags.