-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for directly specifying temporary credentials #230
Comments
Does your approach need to create S3 client in each data upload? |
If you're relying on the built in credential resolvers of any of the SDKs, I should be able to set the 3 environment variables and things just work. It does not. |
S3 plugin uses access key and secret key when these are configured. fluent-plugin-s3/lib/fluent/plugin/out_s3.rb Line 412 in abe0433
So set these parameters and set session token to environment variable should work or need some code for AWS SDK? |
I'm honestly not sure how you coded it, but there must be a way to specify the session token too, otherwise temporary credentials do not work. |
I didn't test but here is simple patch for it.
|
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days |
@repeatedly
The issue is that td-agent is only pulling the values from the token file only at the time td-agent is started. It's not refreshing the tokens from the credentials file or checking to see if it's expired from the expiration key in the credentials file. This is the general structure of a credentials file with temporary/rotating credentials:
All values need to be updated before sending objects to S3, or at least there needs to be a check to see if the token is expired before refreshing from ~/.aws/credentials file. |
I use IAM roles with MFA.
Thus, I see no way to support passing the 3 values in directly:
I want to be able to pass these 3 values in directly. I dot not want the plugin trying to do the assume role call for me.
Any way to make this work?
The text was updated successfully, but these errors were encountered: