-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Currently Steampipe works with your default AWS credentials (account & region). So, currently this is one at a time. You can switch the creds using environment variables though:
or to change region:
We launched with this as a starting point, but are planning support for multiple accounts and regions. There is an issue open discussing the approach here, please share your input and use cases so we can get it right! |
Beta Was this translation helpful? Give feedback.
-
Found this one https://steampipe.io/blog/release-0-2-0. We can query multiple connection and using > 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 |
+--------------+-------+
|
Beta Was this translation helpful? Give feedback.
-
Hi, I've been reading through the multi-region discussions and not sure the current approach is good long term. Each service may or may not have an endpoint in a specific region. Currently if you set AWS_DEFAULT_REGION=ap-northeast-3 and then run 'steampipe query "select * from aws_inspector_template"' you'll receive an error after the attempt times out. AWS's python SDK provides this call boto3.session.Session().get_available_regions( "service" ). I've not been able to find a comparable call via the Node SDK and suspect it is also missing in GoLang. Perhaps a desirable approach would be to allow a wild card "*" for the region value in the connection which would then populate an ephemeral table with service and available regions to iterate. Then rely on the "where region=" as a part of subsequent queries allow for region selection. The resulting query being select * from aws_inspector_template where region like 'us-%' |
Beta Was this translation helpful? Give feedback.
Found this one https://steampipe.io/blog/release-0-2-0. We can query multiple connection and using
union
can aggregate results.