Use conventional AWS environment variables for S3 credentials #267
virtual-machinist
started this conversation in
Ideas
Replies: 1 comment 7 replies
-
Hi @virtual-machinist - have you tried no providing the keys file? From reading the code, (I don't have a setup to hand just at the moment) it defaults to standard AWS S3 setup, but maybe some earlier checking happens to require the keys file. See |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Is it possible to make use of the standard AWS environment variables (
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
) for S3 config instead of the credentials file option?When running in Docker I can work around this with a custom entrypoint script that creates the credentials file before starting the server, but wouldn't it be better to simply delegate to something like
instead of static anonymous credentials.
If we add a
new ProfileCredentialsProvider()
before the anonymous credentials provider then there's even no need to provide a special S3 credentials file command line parameter as it may be fetched by the AWS library using conventional options AFAICT.Or am I missing something and there's another way to use the environment variables already?
Beta Was this translation helpful? Give feedback.
All reactions