Find which instances got terminated via Athena query

Viewed 16

I am running a query which is giving me list of instances launched for a particular month for my security group. Lets say - [A, B ,C ,D] My goal is to find what all instances got terminated also and when.

Now the issue I am facing is that I don't want to execute my query repeatedly - for each instance - to check whether instance got terminated or not.. Like:

SELECT eventname, useridentity.username, eventtime, requestparameters FROM your_athena_tablename WHERE (requestparameters like '%instanceid%')and eventtime > '2017-02-15T00:00:00Z'order by eventtime asc;

How can I pass multiple values here ??

0 Answers
Related