Skip to content
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

Merged

Conversation

joohae-kim
Copy link
Contributor

@joohae-kim joohae-kim commented Sep 21, 2021

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

@@ -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
Copy link
Contributor Author

@joohae-kim joohae-kim Sep 21, 2021

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

@kondratk
Copy link

kondratk commented Oct 4, 2021

@joohae-kim I've tested your PR and it seems like working fine.
@joshdholtz is there any chance for merging this one soon?

@paul-verkada
Copy link

@joshdholtz bump

@brunomgsantos
Copy link

@joshdholtz this feature could be really helpful for AWS Federated Logins 👍

@seanedwards
Copy link

+1, we just ran into this as well. We use SAML-federated logins to AWS, so all of our development credentials require AWS_SESSION_TOKEN

Copy link
Member

@joshdholtz joshdholtz left a 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!

@joshdholtz joshdholtz merged commit 8bddbdd into fastlane-community:master Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants