
1. Create an AWS connection that enables access to multiple accounts
If you don’t yet have one, set up an AWS connection that supports multiple accounts using assume roles.2. Get the list of accounts
In your workflow, add a Get Account IDs AWS action. Choose the connection that enables access to multiple accounts. Then, in the Accounts property, use the multi-select dropdown to select all accounts that you want to iterate over:
3. Iterate over accounts
Add a Loop on Items step to your workflow. In the Items property, use the Data Selector view to select Get Account IDs — that is, the entire output of the previous step:
4. Add an AWS step inside the loop and make the account property dynamic
Inside the loop, add an AWS action that you want to perform for each account. In the action’s properties, select the connection that enables access to multiple accounts. To the right of the Accounts property label, click Dynamic. This will change the property from a dropdown to an input field. Inside the input field, use Data Selector to expand Loop in Items, then item, then click Insert alongside the accountId property:
