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

Support AWS Lambda #415

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

umihico
Copy link

@umihico umihico commented Aug 29, 2022

I tried to use on AWS Lambda and needed to patch a little bit. Instead of fetching metadata like EC2 or ECS, AWS Lambda initially has AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN from the beginning, as reserved environment variables. In this case, we need to pass these variables directly into fog or Aws::S3::Resource.

@umihico
Copy link
Author

umihico commented Aug 29, 2022

(JFYI) When AWS API runs without AWS_SESSION_TOEKN, it threw an error message AWS Access Key Id you provided does not exist in our records, which is confusing.

@n-rodriguez
Copy link
Collaborator

@umihico Hi there! Can you please rebase your branch? Thank you!

@umihico
Copy link
Author

umihico commented Nov 5, 2024

@n-rodriguez
Hi! Thank you for reminding me, I finished rebasing and pushed again 👍

@n-rodriguez n-rodriguez merged commit a960f4d into kjvarga:master Nov 5, 2024
48 checks passed
@umihico umihico deleted the fix/aws-session-token branch November 5, 2024 13:57
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.

2 participants