# Aggregating connections in Steampipe Cloud

> In a workspace, all connections of the same type are automatically aggregated. Now you also can define aggregators for subsets of connections.

By Steampipe Team
Published: 2023-05-10


A Steampipe [aggregator](https://steampipe.io/docs/managing/connections#using-aggregators) bundles multiple connections for a plugin. For example, when you're using the [AWS](https://hub.steampipe.io/plugins/turbot/aws) plugin, Steampipe Cloud automatically creates an aggregator called `aws_all`. When you write a query like `select * from aws_all.aws_s3_bucket`, Steampipe runs against all the connections bundled by the aggregator, and does so concurrently.

## A default aggregation

Here's a workspace with four connections: two for Dunder-Mifflin's Scranton office, and two for the New York office. 

![](/images/blog/2023-05-spc-aggregator/aws_all.png)

Steampipe Cloud has automatically created the `aws_all` aggregator. Querying `aws_all` taps all four bundled connections.

## A custom aggregation

Now let's add an aggregator for just the Scranton office. We'll use the new `Create aggregator` feature.

![](/images/blog/2023-05-spc-aggregator/create-aggregator-1.png)

We'll use wildcards to match just the Scranton connections.

![](/images/blog/2023-05-spc-aggregator/create-aggregator-2.png)

Now we can query `aws_all` for all four connections, or `aws_scranton` for just the two Scranton connections. 

![](/images/blog/2023-05-spc-aggregator/create-aggregator-3.png)


We could similarly bundle the New York connections as `aws_newyork`. And, of course, we can still query the Scranton and New York connections individually.

## The power of aggregation

Steampipe Cloud's aggregation feature is a great way to group your connections together in varying contexts. Give it a try and share your experiences with us in the #cloud channel of [our Slack community](https://steampipe.io/community/join)!
