

# Prerequisites for agent-ready WorkSpaces

**Note**  
This feature is in public preview. Features and behavior are subject to change.

Before you create agent-ready WorkSpaces, make sure that your account meets the requirements on this page, and then complete account setup. Account setup is a one-time step in each AWS Region. It connects your account to the WorkSpaces gateway, which sends the agent's model requests to Amazon Bedrock in your account.

## Supported configurations
<a name="agentic-prerequisites-supported-configurations"></a>

The following table lists the requirements for agent-ready WorkSpaces during preview.


| Requirement | Supported during preview | 
| --- | --- | 
| AWS Region | US East (Ohio) (us-east-2) | 
| Directory | A directory registered with WorkSpaces Personal in US East (Ohio), with the web access client enabled. The supported directory types are the same as for WorkSpaces Personal in the Region. | 
| Bundles | Agent-ready WorkSpaces require a Power bundle or larger, with Windows Server 2025 and the DCV protocol, or a custom bundle based on one. Value, Standard, Performance, and BYOL bundles, and bundles that use PCoIP, aren't supported. | 
| WorkSpaces | New WorkSpaces only. You can't add agentic capabilities to an existing WorkSpace. | 

For more information about directories, see [Manage directories for WorkSpaces Personal](manage-workspaces-directory.md).

**To enable web access for your directory**

1. Open the Amazon WorkSpaces console.

1. In the navigation pane, choose **Directories**.

1. In the **Directory ID** column, choose the ID of the directory that you want to enable web access for.

1. On the **Directory Details** page, scroll down to the **Other platforms** section, and then choose **Edit**.

1. Choose **Web Access**.

1. Choose **Save**.

## Permissions for administrators
<a name="agentic-prerequisites-permissions"></a>

The AWS Identity and Access Management (IAM) identity that you use to set up and manage agent-ready WorkSpaces needs the following permissions.
+ WorkSpaces operations. Each operation has an IAM action with the same name, for example `workspaces:StartAgenticAccountSetup`. To set up your account, you need `workspaces:StartAgenticAccountSetup` and `workspaces:GetAgenticAccountSetup`.
+ IAM. Account setup creates the role `AgenticWorkspacesInferenceRole` in your account. It uses the credentials of the IAM identity that starts setup, whether you start it from the console or the API. That identity needs `iam:CreateRole`, `iam:GetRole`, and `iam:PutRolePolicy` on the role.
+ Amazon Bedrock. To show which models are available to your account, the console needs `bedrock:GetFoundationModelAvailability`.

The following example policy grants the permissions to set up your account. Replace `111122223333` with your account ID.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AgenticAccountSetup",
      "Effect": "Allow",
      "Action": [
        "workspaces:StartAgenticAccountSetup",
        "workspaces:GetAgenticAccountSetup"
      ],
      "Resource": "*"
    },
    {
      "Sid": "CreateInferenceRole",
      "Effect": "Allow",
      "Action": [
        "iam:CreateRole",
        "iam:GetRole",
        "iam:PutRolePolicy"
      ],
      "Resource": "arn:aws:iam::111122223333:role/AgenticWorkspacesInferenceRole"
    },
    {
      "Sid": "ModelAvailability",
      "Effect": "Allow",
      "Action": "bedrock:GetFoundationModelAvailability",
      "Resource": "*"
    }
  ]
}
```

The `workspaces:` actions for agent-ready WorkSpaces don't support resource-level permissions, because their resources (persona configurations, contexts, policies, and connectors) are identified by ID, not by ARN. Use `"Resource": "*"` for the `workspaces:` actions. You can scope the `iam:` actions to the role's ARN, as shown in the example.

## Amazon Bedrock requirements
<a name="agentic-prerequisites-bedrock"></a>

Agents use models from Amazon Bedrock in your AWS account.

**Important**  
AWS bills your AWS account for model usage.
+ Enable model access in Amazon Bedrock. Before you allow a model for agent-ready WorkSpaces, make sure your account has access to it in Amazon Bedrock in US East (Ohio). For third-party models such as Anthropic Claude, someone in your account with AWS Marketplace subscribe permissions must accept the model's terms once. WorkSpaces doesn't accept them for you. For more information, see [Request access to models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html).
+ Cross-Region inference. Model requests from agent-ready WorkSpaces use Amazon Bedrock cross-Region inference profiles for the US geography. Amazon Bedrock can process a request from US East (Ohio) in US East (N. Virginia), US East (Ohio), or US West (Oregon). For more information, see [Cross-Region inference](agentic-workspaces.md#agentic-cross-region-inference).
+ Service control policies. If you use service control policies (SCPs) in AWS Organizations, allow Amazon Bedrock inference in all three Regions. Include the `bedrock:CallWithBearerToken` action. If an SCP denies any of these, account setup or model requests fail, even when the role is correct.

## The AgenticWorkspacesInferenceRole role
<a name="agentic-prerequisites-inference-role"></a>

WorkSpaces uses the `AgenticWorkspacesInferenceRole` role in your account to call Amazon Bedrock for the agent. The role must have this exact name. When WorkSpaces assumes the role, it creates a short-term Amazon Bedrock API key that has the role's permissions and expires with the session. The WorkSpace doesn't store model credentials.

Account setup creates the role for you with the following policies.

### Trust policy
<a name="agentic-prerequisites-trust-policy"></a>

The trust policy allows WorkSpaces to assume the role. The `sts:ExternalId` condition limits the role to WorkSpaces requests for agent-ready WorkSpaces. The external ID is the same for every customer and isn't a secret.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": { "Service": "workspaces.amazonaws.com" },
      "Action": "sts:AssumeRole",
      "Condition": {
        "StringEquals": { "sts:ExternalId": "agentic-workspaces-inference-credential" }
      }
    }
  ]
}
```

### Permissions policy
<a name="agentic-prerequisites-permissions-policy"></a>

Account setup adds the following inline policy to the role, named `AgenticWorkspacesInferencePolicy`.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "BedrockInference",
      "Effect": "Allow",
      "Action": [
        "bedrock:InvokeModel",
        "bedrock:InvokeModelWithResponseStream"
      ],
      "Resource": "*"
    },
    {
      "Sid": "BedrockApiKeyUsage",
      "Effect": "Allow",
      "Action": "bedrock:CallWithBearerToken",
      "Resource": "*"
    },
    {
      "Sid": "BedrockModelDiscovery",
      "Effect": "Allow",
      "Action": [
        "bedrock:ListFoundationModels",
        "bedrock:ListInferenceProfiles",
        "bedrock:ListProvisionedModelThroughputs",
        "bedrock:ListCustomModelDeployments",
        "bedrock:ListImportedModels",
        "bedrock:ListMarketplaceModelEndpoints",
        "bedrock:ListPromptRouters"
      ],
      "Resource": "*"
    }
  ]
}
```

**Note**  
When WorkSpaces uses the role, AWS CloudTrail in your account records the session name `agentic-workspaces-111122223333`, where `111122223333` is your account ID.

## Set up your account
<a name="agentic-prerequisites-set-up"></a>

Complete account setup once in each Region. You can't configure models or connectors until setup is complete. You must complete account setup before you can use the Agentic Catalog, including starter kits.

**To set up your account (console)**

1. Open the [Agentic Catalog](https://console.aws.amazon.com/workspaces/v2/g/agentic-catalog?region=us-east-2) in the Amazon WorkSpaces console. If your account isn't set up, the page shows the setup option.

1. Choose **Enable agent-ready WorkSpaces**.

1. Wait until the status is **Ready**. You can leave the page while setup runs.

1. If the status is **Setup failed**, review the reason, fix the cause, and then choose **Retry**.

**To set up your account (AWS CLI)**

1. Start setup. Setup creates the `AgenticWorkspacesInferenceRole` role in your account.

   ```bash
   aws workspaces start-agentic-account-setup --region us-east-2
   ```

   Setup is asynchronous. The response returns the current status, which is `SETTING_UP` while setup runs. If setup is already in progress or complete, the operation returns the current status and doesn't start setup again.

1. Check the status until it's `READY` or `SETUP_FAILED`.

   ```bash
   aws workspaces get-agentic-account-setup --region us-east-2
   ```

   If the status is `SETUP_FAILED`, fix the cause, and then call `start-agentic-account-setup` again to retry.

## Account setup status
<a name="agentic-prerequisites-status"></a>


| Console status | API value | Meaning | What to do | 
| --- | --- | --- | --- | 
| Not set up | NOT\_SET\_UP | Account setup hasn't run in this Region. | Set up your account. | 
| Setting up | SETTING\_UP | Setup is in progress. | Wait, and then check again. | 
| Ready | READY | Your account is set up. | Allow models and activate connectors. | 
| Setup failed | SETUP\_FAILED | Setup couldn't complete. | Fix the cause, and then start setup again. | 