Skip to content

Frameworks

Marketplace

Platform

Resources

↑↓ to moveEnter to openHelp, news and every page are found here too

Connecting an AWS organisation

How to connect every account in an AWS organisation with one stack, how accounts are added and left out, and what to do when an account shows a problem.

Updated

Connect an AWS organisation to read every account in it, now and when new accounts join. The stack is made in the management account. A StackSet makes the role in every other account.

Who can do this

You need to be able to create a CloudFormation stack in the management account of the organisation. Only an Owner or an Admin can fix, check or disconnect the connection. An organisation counts as one connection on your plan, however many accounts it has. Asiri reads up to 500 accounts in one connection.

Steps

  1. Open Settings, then Connections, and choose Add a connection.
  2. Choose Amazon Web Services, then Organisation.
  3. If trusted access with AWS Organizations is off, choose Enable trusted access with AWS. The StackSet needs it.
  4. Pick the organisational units to read. The page shows the account tree, so you can see what each unit holds.
  5. Read the Permissions step, then choose Open in AWS in the management account. Create the stack there, as you would for one account. The page explains why the management account has its own stack: a StackSet cannot deploy into the management account itself.
  6. Asiri waits for the role in the management account. Then the StackSet deploys the role to each other account in the units you picked. It is set to deploy automatically, so accounts that join later get the role too.

Accounts

Each account shows one state:

  • Reading: Asiri reads it.
  • Role missing: the role was not found in that account. The page gives the named fix.
  • Left out by tag: the account has the tag AsiriScope set to out in AWS.
  • Left out by switch: someone left it out in Asiri. This needs a reason and a second person.
  • Joined today: the account is new and has just been read.
  • Gone: the account is no longer in the organisation.

When an account leaves, its resources stay as evidence until the audit period ends.

To retry an account that shows Role missing, choose Retry. The StackSet also tries again on its own.

Regions

Asiri reads the regions that are switched on in each account, with af-south-1 first. A region that a policy in your organisation blocks shows Not read. It is not counted as a failure. The tests that need that region show Not run. A region that is switched off in the account shows as not enabled, and Asiri does not read it. If Asiri has never read that region, nothing is wrong and the connection stays healthy. If Asiri read it before and it is off now, it is named as a problem to fix.

Common questions

Do I have to set up each account by hand? No. The StackSet makes the role in every account in the units you picked, and in accounts that join later.

Can I stop Asiri reading one account? Yes. Add the tag AsiriScope with the value out to the account in AWS. You can also leave it out in Asiri with a reason, and a second person must agree.

An account says Role missing. What now? Check that the StackSet finished for that account, then choose Retry. If the account was never in the StackSet's units, add it and retry.

Related guides

Can’t find what you need? Contact us.