Skip to content

Frameworks

Marketplace

Platform

Resources

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

Connecting one AWS account

How to connect one Amazon Web Services account to Asiri: the permission page, creating the role in AWS, and what Asiri checks before it reads anything.

Updated

Connect one AWS account so that Asiri can read its settings and report on them. Asiri only reads. It never changes anything in your AWS account.

Who can do this

You need to be able to create a CloudFormation stack in the AWS account. Only an Owner or an Admin can fix, check or disconnect a connection in Asiri. Your plan sets how many connections you can have. One AWS account is one connection.

Before you start

Have the twelve-digit AWS account number ready. That is the only thing you type.

Steps

  1. Open Settings, then Connections, and choose Add a connection.
  2. Choose Amazon Web Services, then One account.
  3. On the Account step, type the twelve-digit account number and continue. Asiri makes the external ID for this connection. You do not type it, and it cannot be edited.
  4. On the Permissions step, read the page before you create anything in AWS. It lists what Asiri reads, what it never reads, the trust policy, the permission policy and the Deny list. Each block has a Copy button.
  5. On the Create in AWS step, choose Open in AWS. CloudFormation opens in a new tab, in your account, with the template and the external ID already filled in. Tick the acknowledgement for IAM resources and choose Create stack. That is all you do in AWS. Terraform and the by-hand steps sit beside the link on the same page.
  6. Go back to Asiri. It shows Waiting for AWS and looks for the role every few seconds. You never paste a role name or an ARN.
  7. When Asiri finds the role, it runs a self-check. Then it shows Connected.

What Asiri checks before it reads

  • The role trusts this connection only, with this connection's external ID.
  • The role cannot write. If the role has any permission that can change something in your account, Asiri refuses the connection and lists those permissions. It reads nothing.
  • The Deny list is in the role.
  • Which regions your account has switched on. Asiri reads every enabled region, with af-south-1 first.

If Asiri does not find the role

  • We did not see the role yet. This appears after about 10 minutes. Check that the stack finished in CloudFormation, then choose Check again.
  • This role trusts a different Asiri. The stack was made from another page or another environment. Create the stack again from the Open in AWS link on this connection's page.
  • Role can write. The role has a permission that could change your account. Remove the named permissions from the role, then wait for Asiri to check again.

After you connect

The first results appear within about 10 minutes. A read that fails or is refused shows Not run. It is never counted as a pass or a fail.

Common questions

Can Asiri change my AWS account? No. The role can only read. Asiri checks this before it reads anything, and it never writes to your cloud.

Can I paste the role ARN myself? No. Asiri finds the role itself, so there is nothing to copy back.

Why does a test say Not run? Asiri could not read what the test needs, or the read did not finish. Other tests and other accounts still count. A test that is not run does not pass.

Related guides

Can’t find what you need? Contact us.