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

# Setup

> Connect AWS IAM Identity Center to Ravenna with a CloudFormation stack that creates a scoped IAM role, and choose which groups Ravenna may grant.

Connect with an IAM role that Ravenna's CloudFormation stack creates in your AWS account.

## Prerequisites

* Organization admin in Ravenna
* AWS IAM Identity Center enabled in your AWS Organization
* Access to the account that administers Identity Center: its [delegated administrator](https://docs.aws.amazon.com/singlesignon/latest/userguide/delegated-admin.html), or the management account if there is none
* The IDs of the Identity Center groups Ravenna may grant. Leave out groups your identity provider syncs over SCIM.

## Connect AWS

**1. Open the AWS integration**

In Ravenna, go to **Settings** > **Integrations** and open **AWS**.

**2. Sign in to the Identity Center admin account**

In AWS, sign in to the delegated administrator account, or the management account if there is none.

**3. Launch the Ravenna stack**

Click **Launch stack in AWS**. The CloudFormation stack has Ravenna's values filled in. In `ProvisioningGroupIds`, list the IDs of the groups Ravenna may add people to, separated by commas. Only those groups sync. Leave it empty for read-only access, which syncs users but no groups.

Below the link, the form shows **Ravenna's AWS account ID** and **External ID** to copy. The link fills them into the stack's `RavennaAccountId` and `ExternalId` parameters, so use them to check a stack you create or update by hand.

**4. Create the stack**

Acknowledge that the stack creates an IAM role, and create it.

**5. Paste the role ARN**

Copy the stack's `RoleArn` output into **Role ARN** and click **Connect AWS**. Ravenna finds your Identity Center instance, checks it can read everything sync needs, and runs the first sync right away.

## Role permissions

| Permission | What Ravenna does with it |
| - | - |
| **Read users and groups** | Syncs Identity Center users, and the members of the groups listed in `ProvisioningGroupIds` |
| **Read accounts and assignments** | Reads the accounts in your AWS Organization, and which groups hold permission sets on them |
| **Change group members** Optional | Adds people to and removes them from the groups in `ProvisioningGroupIds`. Only added when `ProvisioningGroupIds` lists groups. |

## Change the groups Ravenna can grant

Update the Ravenna stack's `ProvisioningGroupIds`, then sync AWS. A group you add syncs with its members. A group you remove is archived in Ravenna and its access levels are kept. List it again and the next sync restores it.

## Troubleshooting

> [accordion] Ravenna couldn't assume the role
>
> Connecting fails with "Ravenna couldn't assume `<role>`" when the role is missing or the stack's values don't match Ravenna's. Check that the role exists, and that the stack's `RavennaAccountId` and `ExternalId` parameters match **Ravenna's AWS account ID** and **External ID** on the connect form.


## Related topics

- [Setup](https://docs.ravenna.ai/integrations/okta/setup/overview.md)


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