You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "matthias-Q (via GitHub)" <gi...@apache.org> on 2025/06/19 15:38:54 UTC
Re: [I] new feature: support AWS Container credential provider [opendal]
matthias-Q commented on issue #4903:
URL: https://github.com/apache/opendal/issues/4903#issuecomment-2988524683
I stumbled over this issue today. Here is a workaround with a start script that sets the ENV vars when running inside ECS
```bash
#!/bin/bash
CREDS_URI=${AWS_CONTAINER_CREDENTIALS_FULL_URI:-"http://169.254.170.2${AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}"}
CREDS_RESPONSE=$(curl -s $CREDS_URI)
export AWS_ACCESS_KEY_ID=$(echo $CREDS_RESPONSE | jq -r '.AccessKeyId')
export AWS_SECRET_ACCESS_KEY=$(echo $CREDS_RESPONSE | jq -r '.SecretAccessKey')
export AWS_SESSION_TOKEN=$(echo $CREDS_RESPONSE | jq -r '.Token')
exec "$@"
```
I hope OpenDAL will support the proper Credentials Chain in the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org