- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-08-2024 08:22 AM
How can I use the cloud account filter in an RQL query? I'm putting together a query to display which screen images are not in use and I would need to add the cloud account filter.
My querys is:
config from cloud.resource where api.name = 'aws-ecr-image' as X; config from cloud.resource where api.name = 'aws-ecs-describe-task-definition' as Y; filter '$.Y.containerDefinitions[0].image does not contain $.X.imageTags[0]'; show X;
02-20-2024 12:40 PM
The way to go about this is add "cloud.account = 'your account'" to this statement sort of like this:
config from cloud.resource where cloud.account = 'your account' AND api.name = 'aws-ecr-image' as X; config from cloud.resource where cloud.account = 'your account' AND api.name = 'aws-ecs-describe-task-definition' as Y; filter '$.Y.containerDefinitions[0].image does not contain $.X.imageTags[0]'; show X;
Hopefully this would resolve your issue, also make sure to add same cloud account to both cloud.account if you're for screen images in a single account.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!