-
Notifications
You must be signed in to change notification settings - Fork 37
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
status of iam_credentials_provider #750
Comments
I am not opposed to exporting |
🤔 should all providers be exported or maybe something similar to aws.signature |
Hi @tyner I believe I have an initial method. Currently named the same as remotes::install_github("dyfanjones/paws/paws.common", ref = "locate_credentials")
paws.common::locate_credentials() |
Thanks, is there a |
If you have access to r-universe https://paws-r.r-universe.dev/paws.common you could use: install.packages('paws.common', repos = c('https://paws-r.r-universe.dev', 'https://cloud.r-project.org')) Alternatively can you get the |
That |
You could try out the function directly is you wish: locate_credentials <- function(profile = "", anonymous = FALSE) {
credentials <- paws.common:::Credentials(profile = profile, anonymous = anonymous)
result <- as.list(paws.common:::get_credentials(credentials)$creds)
result$region <- paws.common:::get_region(profile)
return(result[names(result) != "provider_name"])
} |
Works like a charm, thank you @DyfanJones ! |
Closing as paws.common 0.7.1 is now on the cran |
On our EMR cluster, we are using IMDSv2, and as a result,
aws.signature::locate_credentials()
is not able to find the credentials, even when theaws.ec2metadata
package is available. On the other hand, the non-exported functionpaws.common:::iam_credentials_provider()
still works just fine. Since it is a non-exported function, we are wondering if there is an exported wrapper we should be using instead, perhaps from a different package? If not, would it make sense to start exportingiam_credentials_provider
so that it is part of the official API? Regards, BenThe text was updated successfully, but these errors were encountered: