Cookbook
Iterating Over Multiple AWS Accounts
How to configure a connection and build a workflow to work with multiple AWS accounts
If you want to build a workflow that works across multiple AWS accounts instead of just one, this is possible, but there’s a quirk.
Some AWS-related actions have built-in support for multiple AWS accounts via a multi-select dropdown:
In the AWS block, these actions are Get Account IDs, EBS Get Volumes, EBS Get Snapshots, EC2 Get Instances, RDS Get Instances, and RDS Get Snapshots.
In addition, all actions in the AWS Compute Optimizer block support multiple accounts.
All other actions in AWS-related blocks only support a single account.
This means that if your workflow contains at least one action that only supports a single AWS account, you need to first get a list of accounts, then introduce a loop step to iterate over them.
Additionally, you’ll need a specifically configured AWS connection that enables access to multiple accounts.
Here’s how you could do this.
Was this page helpful?
