Use your own AWS credits (Claude on Bedrock)

Fixture onlyChecked 16 November 2026

In short

  • Run Claude on your own AWS and keep Petrova's caps and receipts.
  • 5% of list price above the first $3,000 a month.
  • Tested against an emulator only.

Your AWS account pays for Claude (AWS Activate credits count). Petrova charges 5% of the list price of what you use, and the first $3,000 of list-price use each month is free. Caps, receipts and the tool settings in this folder stay the same.

Status: built and tested against a local AWS emulator only (tests/fixtures/aws-server.ts). No real AWS account has been connected, and npm run dev does not wire it yet: the routes answer 503 cloud_unavailable there. The commands below are the flow the tests run.

  1. Get your external ID and the stack link (needs a key with the cloud:write scope):
    curl -s http://127.0.0.1:4100/v1/clouds/aws -H "authorization: Bearer $PETROVA_ADMIN_KEY"

    Open quick_create_url. It creates the role from infra/aws/petrova-bedrock-role.yaml: invoke Anthropic models and read inference profiles, nothing else, and only Petrova with your external ID can use it. Copy the RoleArn output.

  2. Paste the role back:
    curl -s -X POST http://127.0.0.1:4100/v1/clouds/aws -H "authorization: Bearer $PETROVA_ADMIN_KEY" \
      -H 'content-type: application/json' -d '{"role_arn":"arn:aws:iam::123456789012:role/PetrovaBedrockAccess","external_id":"ptrv-..."}'
  3. Check it works:
    curl -s -X POST http://127.0.0.1:4100/v1/clouds/aws/verify -H "authorization: Bearer $PETROVA_ADMIN_KEY"

    Petrova assumes the role, finds the global Claude inference profiles, and sends a one-token call to Opus 5.5 and Sonnet 5.5. A model marked access_denied needs Amazon's one-time model access form (the help link); throttled means a low starting quota (the link raises it).

To stop: curl -X DELETE http://127.0.0.1:4100/v1/clouds/aws ... or delete the stack.

Last checked against the code: 16 November 2026. Something wrong? The source of this page is in the repository, so a fix is one edit.