Skip to content

Does Steampipe work with multiple AWS accounts or regions? #71

Answered by morkot
e-gineer asked this question in FAQ
Discussion options

You must be logged in to vote

Found this one https://steampipe.io/blog/release-0-2-0. We can query multiple connection and using union can aggregate results.

> select account_id, count(*) as buckets
  from dmi_scranton.aws_s3_bucket
  group by account_id
  
  union
  
  select account_id, count(*) as buckets
  from dmi_albany.aws_s3_bucket
  group by account_id
 
  union
 
  select account_id, count(*) as buckets
  from dmi_global.aws_s3_bucket
  group by account_id;


   +--------------+-------+
   | account_id   | count |
   +--------------+-------+
   | 111222333444 | 2     |
   | 444555666777 | 15    |
   | 888899990000 | 34    |
   +--------------+-------+
    

Replies: 3 comments 6 replies

Comment options

e-gineer
Jan 25, 2021
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@morkot
Comment options

@morkot
Comment options

@morkot
Comment options

@e-gineer
Comment options

e-gineer Mar 25, 2021
Maintainer Author

Answer selected by e-gineer
Comment options

You must be logged in to vote
2 replies
@e-gineer
Comment options

e-gineer Jun 12, 2021
Maintainer Author

@davidhammturner
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
3 participants