# Cloud prerequisites at a glance

> What your AWS account or Google Cloud project needs before you connect it and create a setup, side by side.

Source: https://diakrin.com/docs/cloud-prerequisites

Before an owner, admin or Technical administrator connects AWS or Google Cloud and creates a setup, the account or project needs the things on this page; each row links to the section with the check, the fix and the exact error.

## Before you start

| You supply | Example | Comes from |
| --- | --- | --- |
| The cloud | AWS or Google Cloud | Your decision. Azure is not available |
| A person in the cloud who can create the access | AWS: an administrator who can create CloudFormation stacks and named IAM roles. Google Cloud: an Owner of the project | Your cloud administrators |
| A person in Diakrin who can manage infrastructure | Owner, admin or Technical administrator | **Settings → Members** |

## Prerequisites by cloud

| Prerequisite | AWS | Google Cloud |
| --- | --- | --- |
| Who runs the connect step | An AWS administrator creates the `DiakrinAccess-<id>` stack in CloudFormation | An Owner of the project runs a pinned script in Cloud Shell |
| Account identifier | 12-digit account ID | Exact project ID (not the name or number) |
| Billing | Not checked | Must be enabled; the script checks it |
| Diakrin's access version for a setup | 1.1.0 or later. Newest is 1.1.1 | 0.8.9 or later. Newest is 0.8.13 |
| Region | 17 priced regions for a setup. Home region of the stack: any of 34 | `us-central1`, fixed per account |
| Network | Existing VPC with two private subnets in two zones, or a new VPC | Its own VPC. No choice |
| Organization policies | Not checked. SCPs and boundaries can block | Not checked. Policies can block |
| Quotas | Not checked | Not checked |
| App address | Nothing to provide | Nothing to provide |
| Details | [Connect AWS and create a setup](/docs/connect-aws) | [Connect Google Cloud and create a setup](/docs/connect-gcp) |

> [!NOTE]
> Planned, not shipped: a read-only scan of your cloud that stops setup creation when the cloud is not ready. Today Diakrin checks only what the two pages say it checks. When the scan ships, each prerequisite section on those pages will link to its check.

## What Diakrin never does

- It never keeps a long-lived cloud key. On AWS it assumes roles with an external ID; on Google Cloud it uses keyless federation and creates no service-account key.
- It never lets itself edit its own access: only you change or remove it.
- It never deletes your resources when you disconnect an account or delete a setup. The one exception is a Google Cloud setup's app address: deleting the setup first removes its gateway, DNS delegation, zone and certificate.

## If it fails

| Symptom | Cause | Fix |
| --- | --- | --- |
| A setup is refused with `ACCOUNT_ACCESS_UPGRADE_REQUIRED` | Diakrin's access in your account is older than a setup needs | AWS: [update the stack](/docs/connect-aws#access-update). Google Cloud: [update the access](/docs/connect-gcp#access-update) |
| Creation stops partway with a provider error | A policy, quota or permission in your cloud, which Diakrin does not read beforehand | AWS: [policies](/docs/connect-aws#organization-policies) and [quotas](/docs/connect-aws#quotas). Google Cloud: [policies](/docs/connect-gcp#organization-policies) and [quotas](/docs/connect-gcp#quotas) |
| You are unsure which cloud step failed | | Start at the cloud's own page and its **If it fails** table |

## Next

Continue to [Connect AWS and create a setup](/docs/connect-aws) or [Connect Google Cloud and create a setup](/docs/connect-gcp).
