-
Notifications
You must be signed in to change notification settings - Fork 451
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
feat: assumed web identity and imds support for bedrock #744
base: main
Are you sure you want to change the base?
Conversation
} | ||
let token; | ||
// for node | ||
if (typeof process !== 'undefined' && process.versions?.node) { |
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.
You can directly use the hono getRuntimeKey() function to get the this value.
creds?.secretAccessKey || env(c).AWS_ASSUME_ROLE_SECRET_ACCESS_KEY || ''; | ||
let sessionToken = creds?.sessionToken; | ||
// if not passed get from IRSA>WebAssumed>IMDS | ||
if (!accessKeyId && !secretAccessKey) { |
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.
Should we put a getRuntimeKey() === "node"
check here? This will anyways not be useful for workerd runtime
Title:
Description: (optional)
Motivation: (optional)
Related Issues: (optional)