> ## Documentation Index
> Fetch the complete documentation index at: https://inframan.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect a cloud account

> Give Inframan scoped, keyless access to a Google Cloud project or an AWS account by running one script.

A **cloud account** is a Google Cloud project or an AWS account that Inframan may provision into. You connect it once. Inframan generates a script for that account, you run it in your cloud's shell, and Inframan verifies the result before it lets anyone provision there.

The script creates the identities Inframan acts through. Nothing in it hands Inframan a key: on Google Cloud, Inframan impersonates a service account in your project, and on AWS it assumes a role that trusts only your instance. The [permissions reference](https://inframan.mintlify.site/provision/permissions.md) lists everything the script creates.

## Before you begin

* You need the **Admin** role on your Inframan instance.

> [tab] Google Cloud
>
> * A Google Cloud project with billing enabled.
> * Rights in that project to enable APIs, create service accounts and custom roles, and grant IAM roles. The **Owner** role covers all of these.

> [tab] AWS
>
> * An AWS account, and its 12-digit account ID.
> * Rights in that account to create IAM roles and service-linked roles. **AdministratorAccess** covers this.
> * Access to AWS CloudShell in that account.

## Connect an account

**1. Open the cloud accounts page**

In the console, go to **Settings** → **Cloud accounts** and click **Add cloud account**.

If you have no infrastructure yet, the **Infrastructure** page offers the same button.

**2. Describe the account**

Enter a **Name** you'll recognise, choose the **Cloud**, and enter the Google Cloud project ID or the 12-digit AWS account ID. Click **Continue**.

**3. Run the setup script**

Inframan shows a script made for this account. Click **Copy script**, open **Cloud Shell** (Google Cloud) or **AWS CloudShell** from the link next to it, then paste and run the script.

To read what each command does before you run it, open **Show the steps**.

> [!NOTE]
>
> The AWS script checks which account it's running in and stops if it isn't the account you entered.

**4. Verify**

Click **Verify**. Inframan acts in your account exactly the way provisioning will, so a passed check means provisioning will be able to act there too. New IAM grants can take a minute or two to take effect, so Verify keeps trying for about two minutes before it gives up.

When the account shows **verified**, you can [create an infrastructure](https://inframan.mintlify.site/provision/create-infrastructure.md) in it. Only verified accounts are offered when you create one.

## Account status

| Status | What it means | What to do |
| - | - | - |
| **setup not run** | The account is registered but the script hasn't been run. | Click **Finish setup**, run the script, then **Verify**. |
| **verifying…** | Inframan is checking the account. | Wait. This takes up to about two minutes. |
| **setup incomplete** | The check failed. Something in the script didn't apply. | Click **Finish setup**, run the script again, then **Verify**. The script is safe to re-run. |
| **verified** | Inframan can act in the account. | Nothing. You can provision. **Setup** shows the script again. |

## Remove an account

Click **Remove** on the account's row. Inframan refuses while any infrastructure still uses the account, so [destroy those infrastructures](https://inframan.mintlify.site/provision/destroy-infrastructure.md) first.

Removing an account only removes it from Inframan. The service account or role that the script created stays in your cloud, because you created it. Delete it there if you no longer need it.

To cut Inframan off from an account immediately, without going through the console, remove its access in your cloud. See [Revoking access](https://inframan.mintlify.site/provision/permissions.md#revoking-access).

## With an AI assistant

An assistant connected to Inframan can register a cloud account and fetch its setup script, but it can't run the script for you. You run it, then the assistant verifies the account. Renaming or removing a cloud account is only possible in the console. See [Connect an AI assistant](https://inframan.mintlify.site/get-started/ai-assistants.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.