You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using sts_assume_role_with_web_identity to generate temporary credentials for S3. I managed to get it to work but encountered a few issues along the way.
The function is documented but not exported, the following snippet returns an error ('sts_assume_role_with_web_identity' is not an exported object from 'namespace:paws.security.identity').
# does not work
creds <- paws.security.identity::sts_assume_role_with_web_identity(
RoleArn = 'my-role',
RoleSessionName = 'my-session',
WebIdentityToken = 'my-token'
)
I can access the non-exported version but I cannot call it directly, the error I get is Error in eval(call[[2]], envir = calling_env) : object 'paws.security.identity' not found.
# does not work
creds <- paws.security.identity:::sts_assume_role_with_web_identity(
RoleArn = 'my-role',
RoleSessionName = 'my-session',
WebIdentityToken = 'my-token'
)
To get it to work, I first have to assign the function to another name:
# works
fun <- paws.security.identity:::sts_assume_role_with_web_identity
creds <- fun(
RoleArn = 'my-role',
RoleSessionName = 'my-session',
WebIdentityToken = 'my-token'
)
Versions:
paws.security.identity_0.6.1
paws.common_0.7.4
The text was updated successfully, but these errors were encountered:
Hi,
I'm using
sts_assume_role_with_web_identity
to generate temporary credentials for S3. I managed to get it to work but encountered a few issues along the way.'sts_assume_role_with_web_identity' is not an exported object from 'namespace:paws.security.identity'
).Error in eval(call[[2]], envir = calling_env) : object 'paws.security.identity' not found
.To get it to work, I first have to assign the function to another name:
Versions:
The text was updated successfully, but these errors were encountered: