Using EKS pod identity with Kubernetes Airbyte deployment

Summary

Airbyte job logs show error related to AWS credentials when trying to publish to S3. The issue seems to be with the Airbyte code not looking in the correct place for the credentials.


Question

Hello!
Is anyone use EKS pod identity in conjuction with their kubernetes airbyte deployment?

I am seeing this error in the pod logs, related to airbyte job logs:
Cannot end publishing: Cannot publish to S3: Unable to load AWS credentials from any provider in the chain: [EnvironmentVariableCredentialsProvider: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)), SystemPropertiesCredentialsProvider: Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey), WebIdentityTokenCredentialsProvider: You must specify a value for roleArn and roleSessionName, com.amazonaws.auth.profile.ProfileCredentialsProvider@9a458c1: profile file cannot be null, com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@763b785: The full URI (<http://169.254.170.23/v1/credentials>) contained withing environment variable AWS_CONTAINER_CREDENTIALS_FULL_URI has an invalid host. Host should resolve to a loopback address or have the full URI be HTTPS.]
When I look at the pod it has the correct environment variable that the pod identity add-on adds based on the service account:

AWS_DEFAULT_REGION:                      us-west-2
AWS_REGION:                              us-west-2
AWS_CONTAINER_CREDENTIALS_FULL_URI:      <http://X.X.X.X/v1/credentials>
AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE:  /var/run/secrets/pods.eks.amazonaws.com/serviceaccount/eks-pod-identity-token```
It just appears that the airbyte code is not looking in the right place for the creds.

Anyone have experience with this?

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1724364879999639) if you want 
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["eks-pod-identity", "kubernetes", "airbyte", "aws-credentials", "s3"]
</sub>