Skip to main content

Setting Up AWS Bedrock in the Control Center

Connect your own AWS account's Amazon Bedrock models to the Vocareum GenAI Gateway with an IAM role and External ID

S
Written by Shingo Nakagaki

For Admins

This article shows how to let Vocareum call Amazon Bedrock (Claude or Nova models) in your own AWS account. Bedrock usage is billed by AWS to that account; Vocareum budgets and distributes it to your learners through the GenAI Gateway.

You do not give Vocareum any AWS keys. Instead you create an IAM role in your account that Vocareum's gateway is allowed to assume. Each Vocareum organization has its own External ID, and your role must require it, so no other organization can use your role. For further context, refer to the AWS documentation on the confused deputy problem.

For an overview of the GenAI Gateway, see Bringing GenAI Resources Into Vocareum.

Note: Already using Bedrock with Vocareum?

If you set up a Bedrock role before External IDs were introduced, update its trust policy to match Step 2 (the Vocareum role from your Services page plus the External ID condition), then click the Key column icon on the service row to test it. Any older statements that trust other Vocareum roles can then be removed. Contact Vocareum support if you are unsure which statements to keep.


AWS Bedrock Setup Checklist


Before you start

  • An AWS account where you can create IAM roles.

  • Bedrock model access enabled in that account for the models you want, in the region your Vocareum site runs in: us-west-2 (US Oregon) for most sites, eu-west-1 (Ireland) for the EU site. Anthropic models may ask you to submit a short use-case form the first time.

  • Org admin access to the Vocareum Control Center.


Step 1: Find your External ID

  1. In the Control Center, select GenAI, then GenAI Resources > Services.

  2. Select Add Service and choose Claude Bedrock (or Nova) from the service type dropdown.

  3. Under the Role ARN field, the help text shows the Vocareum role your role must trust and your organization's External ID, for example vocareum-org-123. Keep this page open; you will copy both into AWS.

The External ID is not a secret and never changes for your organization. Vocareum always sends your organization's own External ID, so you cannot choose a different one.


Step 2: Create the IAM role in AWS

Note: Trust policy for the EU site

If your Vocareum site is the EU site, the Services page names a different Vocareum role. In step 2 below, use this trust policy instead:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam::036136800740:role/genai-gateway-eu" },
"Action": "sts:AssumeRole",
"Condition": { "StringEquals": { "sts:ExternalId": "vocareum-org-123" } }
}
]
}

  1. In the AWS console, open IAM > Roles and click 'Create role'.

  2. Choose Custom trust policy and paste the policy below (EU site: use the policy in the note above). Replace vocareum-org-123 with your External ID from Step 1.

    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Effect": "Allow",
    "Principal": { "AWS": "arn:aws:iam::036136800740:role/genai-gateway" },
    "Action": "sts:AssumeRole",
    "Condition": { "StringEquals": { "sts:ExternalId": "vocareum-org-123" } }
    }
    ]
    }

    If the role shown on your Services page differs from this one, use the one on the page.

    Click 'Next'.

  3. Choose 'Create inline policy' (or a customer-managed policy) and paste the following permissions policy:

    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Effect": "Allow",
    "Action": [
    "bedrock:InvokeModel",
    "bedrock:InvokeModelWithResponseStream",
    "bedrock:ListFoundationModels"
    ],
    "Resource": "*"
    }
    ]
    }

    You can narrow Resource to specific models or inference profiles if your security policy requires it.

  4. Name the role (for example vocareum-bedrock) and click 'Create role'. On the role's summary page, copy its ARN. It looks like arn:aws:iam::123456789012:role/vocareum-bedrock.


Step 3: Add the service in the Control Center

  1. Back on the Services page, paste the role ARN into Role ARN, and enter a Name and Budget (and optionally a Monthly Limit).

  2. Click 'Add Service'. When you save, Vocareum checks that it can assume the role with your External ID, and that the role refuses requests without it. If either check fails, nothing is saved and a message appears at the top of the form (see Troubleshooting).

  3. The new service appears in the API Services list. To test the credentials at any time, click the green check icon in the Key column of that row; Vocareum assumes the role and lists the Bedrock models it can reach.


Optional: Bedrock guardrail

To check every prompt and reply against an Amazon Bedrock guardrail, turn on Apply an Amazon Bedrock guardrail to every request and enter the guardrail ARN and version. The guardrail must be in the same AWS account and region as the role, and the role's permissions policy also needs bedrock:ApplyGuardrail on that guardrail.


Troubleshooting

  • "Vocareum could not assume this role…": check that the Role ARN is correct, that the trust policy names the Vocareum role from the Services page, and that the External ID in the trust policy exactly matches yours.

  • "The role's trust policy must require exactly the External ID shown on this page…": the trust policy lets Vocareum in without your External ID. Use StringEquals with your exact External ID. StringLike with a wildcard, StringEqualsIfExists, or no condition at all are refused, because they would let another organization use your role.

  • "Could not check the role right now. Try again later": a temporary AWS error. Wait a minute and save again.

  • The Key column test fails, or learners see "Bedrock credentials are not configured correctly": check the permissions policy from Step 2 and that model access is enabled in the right region.


If you have questions or run into problems, please email support@vocareum.com.

Did this answer your question?