AWS S3
Your assistants can be configured to record chat conversations and upload the recordings to a bucket in AWS S3 when the conversation ends. You will need to configure the credential and bucket settings in the Cloud Providers section of the Integrations page in the Vapi dashboard.
Vapi can authenticate to your bucket in two ways:
- Access keys: an AWS Identity and Access Management (IAM) user’s access key ID and secret access key. For more information, see AWS’s guide to managing IAM user access keys.
- Role-based (AWS STS): Vapi uses AWS Security Token Service (STS) to assume an IAM role in your account and receives short-lived credentials. No long-lived keys are shared. For more information, see Role-based credentials (AWS STS).
Credential Settings
Example

Role-based credentials (AWS STS)
With role-based credentials, you create an IAM role in your AWS account that trusts Vapi’s AWS account. When Vapi uploads a recording, it calls STS AssumeRole on your role and uses the temporary credentials it receives.
Prerequisites
- An S3 bucket for your recordings
- IAM permissions to create roles and policies in the account that owns the bucket
- A Vapi private API key, if you create the credential through the API
Create an IAM role
Create the role that Vapi will assume.
- Open the IAM Console in AWS
- Go to Roles and click Create role
- Select Custom trust policy as the trusted entity type
- Paste a trust policy from the next step
Choose a descriptive name for the role, such as VapiS3RecordingsRole.
Attach the trust policy
The trust policy allows Vapi’s production AWS account, 533267069243, to assume the role.
Set the principal to Vapi’s account root, arn:aws:iam::533267069243:root. Do not name a specific Vapi IAM user or role. Vapi may change which of its IAM identities calls AssumeRole, and a trust policy that names a specific identity stops working when that happens. Trusting the account root does not give every identity in Vapi’s account access; it lets Vapi’s account grant sts:AssumeRole only to the identity that needs it.
An External ID is optional. If you use one, enter the same value in the trust policy’s sts:ExternalId condition and in the Vapi credential’s authenticationPlan.externalId.
For more information, see AWS’s guides to creating a role with a custom trust policy and using External IDs for third-party access.
With External ID
Without External ID
Replace YOUR_UNIQUE_EXTERNAL_ID with a unique value before use. AWS recommends an External ID for third-party cross-account access.
Use this policy only if you do not require an External ID for the role. This policy does not check which Vapi customer the request is for.
Attach the permissions policy
Give the role access to your bucket. Replace YOUR_BUCKET_NAME with your bucket name. To limit access to a path prefix, replace /* with /YOUR_PREFIX/*.
If your bucket uses server-side encryption with AWS Key Management Service keys (SSE-KMS) and a customer managed key, also allow kms:GenerateDataKey and kms:Decrypt on that key.
Before attaching the policy, you can check it with IAM Access Analyzer policy validation.
To attach the policy:
- In the IAM Console, go to Policies and click Create policy
- Select JSON and paste the policy
- Name the policy, for example
VapiS3RecordingsPolicy - Attach the policy to your IAM role
Create the Vapi credential
Create a credential with the role’s Amazon Resource Name (ARN) and bucket details, in the dashboard or through the API.
Dashboard
API
The dashboard form has no External ID field. If your trust policy requires an External ID, create the credential through the API.
- In the Vapi dashboard, open the AWS integration
- In AWS STS Credentials, enter the Role ARN of the IAM role you created
- Enter the S3 Bucket Region and S3 Bucket Name
- Optionally, enter a Path Prefix for uploaded recordings, for example
recordings/, and a Fallback Index - Save the credential
Create an aws credential:
If you chose the trust policy without an External ID, omit the externalId field.
Troubleshooting
AccessDeniedonsts:AssumeRole: The trust policy doesn’t allow Vapi to assume the role. Check that the principal isarn:aws:iam::533267069243:root, not a specific Vapi IAM user or role, and that the External ID matches.- External ID mismatch: The
externalIdin your Vapi credential must exactly matchsts:ExternalIdin the trust policy. If you don’t use an External ID, remove theConditionblock from the trust policy and theexternalIdfield from the credential. AccessDeniedon upload: The role’s permissions policy doesn’t cover the bucket or prefix, or a bucket policy or KMS key policy denies access. Check theResourceARN and any path prefix restriction.