AWS
For Studio users who can create an AWS Identity and Access Management (IAM) role in the account agents should reach, or hand the trust policy to someone who can. No access keys are pasted: the role trusts your deployment's platform principal under an External ID Studio generates, and "short-lived STS credentials are minted at runtime".
Before you start: there is no discovery for AWS. "The Connector Guide you wrote above is the only thing telling agents what this role can do", so write it with the role's scope in mind, for example "read-only access to the bucket of daily risk packs".
Steps
- In Data Bridge, click Create connector, choose AWS as the Connection type, and fill Name, Description and Connector Guide.
- Under Connection settings, enter the Default AWS Region (placeholder
us-east-1), the region agents' AWS clients default to. - Click Generate role setup. Studio shows, with Copy on the single values:
- Platform principal (who your role must trust)
- ExternalId (unique to this connector; required in the trust condition)
- Trust policy (paste as the role's trust relationship)
- an Example permission policy, guidance only: you decide the actual scope.
- In the AWS account, create the role with that trust policy, attach the permission policies you want agents to have, and paste the role's Amazon Resource Name (ARN) into IAM Role ARN (placeholder
arn:aws:iam::123456789012:role/alphaagent-access). - Click Test connection, enabled once the region, the ARN and the External ID are there. Studio assumes the role with the External ID and verifies the identity; a Passed box names it, a Failed box shows the AWS error. Nothing is saved.
- Click Create connector, enabled only after a passing test.
- Add the connector to an agent from its Agent Map (Agents: configure and activate).
What you should see
The list shows AWS, "Version 1", Active. On the connector's page, Access & credentials holds Verify access: Last verified with a time, or Never verified, and Test connection ("Assume the role with this connector's ExternalId"), with the platform principal, the ExternalId and the trust policy to copy. Configuration shows the IAM role ARN, Region and Session duration.
Before an API-started run
"API runs need a passing test: a workflow run started through the programmatic API that reads from this connector is refused until Test connection has passed here." Last verified is stamped by this button and by the test Studio runs when it saves the connector (at creation, or after a role or credential change), so a connector created with a passing test is ready at once. Until a pass is recorded the API answers 409 workflow_not_ready: "connector '<name>' (<id>) has not passed Test connection. Open the connector's page and press Test connection, then start the run again." A failed test shows Last test failed with its time and reason until the next pass.
How agents use it
- Session duration: the lifetime of the temporary credentials Studio requests from AWS Security Token Service (STS) when it assumes the role. It is not a form field; new connectors use 3,600 seconds. The value must be between 900 and 43,200 seconds and cannot exceed the role's maximum session duration; when the deployment assumes the role through its platform principal in two steps, AWS limits the second step to 3,600 seconds.
- S3 in the Kernel: there is no bucket, prefix or object browser, and no S3 operation run by Studio on the agent's behalf. The agent's code uses the AWS SDK for Python in its Kernel with the temporary credentials and default region, exactly as far as the policy allows; on
AccessDeniedit reports the error rather than probing other services. - S3 prefix: a Flow parameter of this type reads "Objects under a key prefix, read through an AWS connector and copied into the run before it starts." At run time the objects under the prefix are copied into the run's
inputs/folder as that role. The AWS connector must be on an agent in the Flow, Active and stamped Last verified (Flows: run, schedule, approve, Patterns). - Sharing: Share warns "This connector uses a customer-owned AWS role. The copy will land complete, but the recipient’s account must be added to the role’s trust policy before it can connect. The recipient sees the exact account ID to add." On the receiving Studio the copy shows Needs attention and Role setup required ("This connector signs in with an AWS role. Add this Studio to the role with Role setup, then test the connection."): add the principal and ExternalId shown under its Verify access to the role's trust policy, then click Test connection there (Libraries and sharing). A copy carries the role ARN and region but never the External ID: the receiving Studio creates its own when the copy is opened.
Notes
- Refresh role setup issues a new External ID and clears the last test: update the role's trust policy before you test again.
- On Update, the External ID is kept and not issued again: "This is the trust relationship already configured on the customer's role. If you're rotating the role itself, recreate this trust policy on the new role before saving its ARN above." Saving an update needs the region and ARN; a test is optional.
- Limits: IAM Role ARN
arn:aws:iam::<12-digit account id>:role/<name or path/name>; External ID generated by Studio, up to 128 characters, stored in AWS Secrets Manager, never editable; session 900 to 43,200 seconds, default 3,600. - "external_id is required to test an AWS connector. Generate role setup info first.": click Generate role setup first. "role_arn must be a well-formed IAM role ARN": copy the ARN from the role's summary page.
- "Failed to generate role setup" or "Failed to load role setup": try again.
- A Failed test usually means the trust policy does not match: check the principal, that the condition names the current External ID, and the ARN.