Is there a way to return the count of aws_instances each individual aws_account itself has?

I'm taking inventory of aws_instances per aws_account. How do I return the count of aws_instances each individual aws_account itself has?

Answers

  • dcpeach
    dcpeach ✭✭✭✭✭
    The following query should help:

    FIND aws_instance as i RETURN i.accountId, count (i.id)

This Month's Leaders