-
Notifications
You must be signed in to change notification settings - Fork 66
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
allow AWS_SESSION_TOKEN to create session token #105
allow AWS_SESSION_TOKEN to create session token #105
Conversation
@@ -89,7 +91,7 @@ def self.run(config) | |||
client_cfg[:region] = s3_region if s3_region | |||
client_cfg[:endpoint] = s3_endpoint if s3_endpoint | |||
client_cfg[:profile] = s3_profile if s3_profile | |||
client_cfg[:credentials] = Aws::Credentials.new(s3_access_key, s3_secret_access_key) if s3_access_key && s3_secret_access_key | |||
client_cfg[:credentials] = Aws::Credentials.new(s3_access_key, s3_secret_access_key, s3_session_token) if s3_access_key && s3_secret_access_key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://docs.aws.amazon.com/sdk-for-ruby/v2/api/Aws/Credentials.html
the default value of the session token field is null, hence it should be okay
@joohae-kim I've tested your PR and it seems like working fine. |
@joshdholtz bump |
@joshdholtz this feature could be really helpful for AWS Federated Logins 👍 |
+1, we just ran into this as well. We use SAML-federated logins to AWS, so all of our development credentials require |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This look great! Thank you so much for this addition 🙌 This will go out today!
for me, it's not easy to explaining the detail why I wanted merge the update into the main repo
however, I think we can use AWS_SESSION_TOKEN variable with simple touch up
please, refer following issue ticket
thank you
Reference: #54