Types of Filter Node

Updated 6 days ago by Totalcloud

Combinations of different types of filters helps you in fine-tuning your resource selection. This enables you to selectively retain only a subset of requisite resources inherited from previous node.

There are different types of filters:

1. Param

Helps filter resources by their attributes or their Add-ons attributes.

Usage Examples:

Here are few usage example to give you a gist of how to use this sub-condition in Filter node:

  • Selecting only IAM roles with >90 days old and with old passwords
  • Selecting only a specific type of EC2 instances
  • Selecting EC2 instances created in the past week
2. Tags

Helps filter resources by their tags.

Usage Examples:

Here are few usage example to give you a gist of how to use this sub-condition in Filter node:

  • Filtering EC2 instances further with tag Value 'Test'
  • Filtering Autoscaling Groups further with tag Value 'Dev'
  • Filtering RDS instances further with tag Value 'Prod'
3. Security Group

Helps filter certain resources based on the properties of Security Groups associated with those resources or directly on the Security Groups themselves.

This filter is applicable only for selective resources like instances, RDS instances that have associated Security Groups. If you select instances in Resource node, then you will have to select the Security Groups Add-on to use this. You can use this filter wherever the following are available either as a direct resource or as a addOn on a different resource. The applicable Security Groups are EC2 SGs, Cluster SGs, mount target SGs, Cache SGs, DB SGs and Stale SGs.

Usage Example: Selecting security groups with port 22 open to the world

4. Network ACLs

Helps filter certain resources based on properties of NACL Rules associated with those resources or directly on the NACL themselves.

This is applicable only for selective resources like subnets that have associated NACL Rules. If you select Subnets in Resource node, then you have to select the Network ACLs addOn to use this filter. You can also use this directly by selecting Network ACLs as the resource in Resource Node.

Usage Example: Filter Network ACLs that have all ports open to the world.

5. Function

Helps selectively filter resources using custom Java scripts, when none of the other Filters work.

6. Date

Helps filter resources based on date/time value, such as 'Launch Time.'

Examples:
  1. If you want to filter instances that were launched between 12-06-2019 14:13:59 and 12-05-2019 14:13:59, use key : LaunchTime and time: 12-06-2019 14:13:59 and 12-05-2019 14:13:59
  2. If you want to filter instances that were launched in last two days, use key : LaunchTime and time: last 2 days


How did we do?