Infra alerting: Excluding attribute

Hey,

I want to exclude an attribute in the same where clause:

where = "ec2Tag_project = 'gol' AND ec2Tag_chef_environment = 'production' IS NOT mountPoint = '/data/proteus'"

Is the use of ‘IS NOT’ correct? As I am getting an error in terraform (when running an apply).

Many thanks!

Hi, @ali.mohamed1: Yes, IS NOT is incorrect. Try this:

WHERE ec2Tag_project = 'gol'
  AND ec2Tag_chef_environment = 'production' 
  AND mountPoint != '/data/proteus'
1 Like