running airbyte oss in docker, i try to configure ...
# ask-ai
g
running airbyte oss in docker, i try to configure a S3 destination, I have created policy, role and S3, but when I test I have an error failed to assume role from STS
k
The error “failed to assume role from STS” usually means the IAM Role setup or how Airbyte OSS is allowed to use it is not aligned with what Airbyte supports. From the docs: - For S3 destination in OSS you can authenticate via: - Access Key ID + Secret Access Key - STS Assume Role (Role ARN) with credentials - Instance profile on the host (EC2/EKS) [[S3 destination](https://docs.airbyte.com/integrations/destinations/s3)]. - If Access Key and Secret are not provided, Airbyte will rely on either: - The configured Role ARN (STS AssumeRole), or - The instance profile of the host [[S3 dest step2](https://docs.airbyte.com/integrations/destinations/s3#step-2-set-up-the-s3-destination-connector-in-airbyte)]. Since you’re on Docker (non‑AWS host, no instance profile), relying on only a Role ARN generally won’t work unless AWS credentials are also available to perform the
sts:AssumeRole
call (via env vars, profile, etc.). The docs do not provide a complete pattern for OSS Docker + role‑only auth, and there are open issues where AssumeRole fails due to credentials not being passed correctly in some cases [[Issue 57577](https://github.com/airbytehq/airbyte/issues/57577)]. Given what’s documented, the supported, reliable options for OSS Docker are: 1. Use an IAM User (recommended for OSS Docker) - Create an IAM user, attach a policy giving the S3 bucket permissions, then create an Access Key and Secret. [[S3 dest setup](https://docs.airbyte.com/integrations/destinations/s3#authentication-option-2-using-an-iam-user)] - In the S3 destination config, fill: - Access Key ID - Secret Access Key - S3 Bucket Name / Path / Region 2. Use STS AssumeRole with credentials available to Airbyte The docs say: if Access Key/Secret are missing, auth will rely on Role ARN or instance profile [[S3 dest step2](https://docs.airbyte.com/integrations/destinations/s3#step-2-set-up-the-s3-destination-connector-in-airbyte)]. However, in OSS Docker, you must still ensure AWS credentials that can call
sts:AssumeRole
are discoverable by the connector (e.g., as env vars). The knowledge sources do not give a fully documented working example for this scenario, and there is at least one open issue indicating problems in this flow [[Issue 57577](https://github.com/airbytehq/airbyte/issues/57577)]. So I cannot reliably walk you through a role‑only Docker setup based solely on the docs. 3. Instance profile (only if running on EC2/EKS) - If running Airbyte on EC2/EKS with an instance profile, you may omit keys and Role ARN and rely on the instance profile, as long as that role has S3 RW permissions [[S3 destination](https://docs.airbyte.com/integrations/destinations/s3); [AWS infra](https://docs.airbyte.com/platform/deploying-airbyte/infrastructure/aws)]. - This does not apply to a generic Docker host. Practical next step based on docs: For OSS in Docker, the documented and supported path is to switch your S3 destination to use IAM User credentials (Access Key ID + Secret Access Key) with a policy that includes both object- and bucket-level permissions, then re‑run the “Check connection” [[S3 destination](https://docs.airbyte.com/integrations/destinations/s3)]. If you must use IAM Role from OSS Docker and the above doesn’t help, the knowledge sources don’t provide enough detail to guarantee a working configuration; in that case you may need to open or follow a GitHub issue like [[Issue 57577](https://github.com/airbytehq/airbyte/issues/57577)].