Skip to content

Bring your own AWS account (BYOC)

With BYOC, every deploy, status check, log read and destroy for that account runs as an IAM role in your AWS account, using short-lived STS credentials. Your agents, their images and their secrets live in your account, and you can revoke access at any time by deleting one CloudFormation stack.

How it’s locked down

  • The role trusts only AbstractAI’s AWS account, and only with your external ID (abstractai-<your user id>), which the platform sets itself — no one can pass a different one.
  • The platform may only assume roles whose names start with AbstractAI.
  • Images are built by the CLI with your local AWS credentials, so they land in your own ECR.

With the AWS CLI signed in to the target account:

Terminal window
agent-platform accounts connect # name "my-aws", your default region
agent-platform accounts connect --name prod --region eu-west-1

It shows the role name, your external ID and the AbstractAI account, asks before creating anything, creates the AbstractAIDeployRole CloudFormation stack, then registers the account. --yes skips the questions and makes it your default. Already created the role? Use --role-arn arn:aws:iam::123456789012:role/AbstractAIDeployRole.

Delete the role’s CloudFormation stack in your AWS account. The next call AbstractAI makes for that account fails with a clear error. Agents already running keep running — destroy them first if you want them gone.

Assistants deployed from the dashboard use the platform’s prebuilt runtime image; a connected account is granted pull access to that one repository only.