> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prod.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to AWS services with IAM roles

Connecting to AWS services by assuming an IAM role is available on [Managed BYOC](https://docs.prod.ai/deployment/cloud-prem/aws.md) deployments running in your AWS account.

On Managed BYOC, the Prod AI data plane runs inside your AWS account and can authenticate to AWS services using an [IAM role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) instead of long-term access keys. This works for:

* Prod AI integrations such as [DynamoDB](https://docs.prod.ai/integrations/integrations-library/aws-dynamodb) and [S3](https://docs.prod.ai/integrations/integrations-library/aws-s3)
* Backend API steps using the Python [Boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html) library or JavaScript [AWS SDK](https://www.npmjs.com/package/aws-sdk)

## Setup

Work with your Prod AI team to associate the target IAM role (or EKS service account annotation via [IRSA](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html)) with your Managed BYOC data plane.

Once configured:

1. Create an AWS integration in Prod AI (for example, Amazon S3 or DynamoDB).
2. Select the region and choose the IAM authentication method matching your Managed BYOC data plane setup (**Token File** for EKS IRSA, or role-based task credentials).
3. Test the connection to verify temporary credentials are retrieved automatically at runtime.

![S3 integration using IAM role on Managed BYOC](https://mintcdn.com/prod-ai/PgFRt41j3RlUW19_/images/integrations/authentication/opa_irsa_s3.png?fit=max\&auto=format\&n=PgFRt41j3RlUW19_\&q=85\&s=6b9d22f910ab4f7bbf6b6743dc72211d)

## Connect to AWS in Python and JavaScript

When IAM role authentication is configured on your Managed BYOC data plane, backend Python (Boto3) and JavaScript (AWS SDK) steps automatically inherit the data plane's role credentials so you can call any AWS API permitted by that role without storing static access keys.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.