Description Usage Arguments Details See Also
Initializes a call to STS or pulls instance meta data
1 2 | tempCredentialHandler(rootCredentials = NULL, roleArn = NULL,
MFADeviceSerialNumber = NULL, Duration = "3600")
|
rootCredentials |
(AWSRootCredentials) Your root credential object to feed STS calls |
roleArn |
(string) the ARN of the role you want to assume |
MFADeviceSerialNumber |
(string) The id number (serial | arn) of your MFA device. |
Duration |
(string) Duration, in seconds, of the role session; controls time-to-expire of temporary credentials. |
This function isn't intended to be called directly; it is a method of the AWSTemporaryCredentials class. Initializes a call to STS or pulls instance meta data. Exactly which depends on the arguments you pass.
If root credentials are passed, it will call STS.
Only the root credentials and roleArn are required.
If you have an account with MFA, you must pass your MFA SN.
This only works with Assume Role for now, thus the requirement of a roleARN.
Otherwise, it will try to curl instance metadata and get temporary credentials from there.
For additional information on STS requests refer to [STS Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html)
Other credential management functions: AWSRootCredentials
,
AWSTemporaryCredentials
,
RcurlAWS
,
credsFromInstanceMetadata
,
genCredentialFilePath
,
getCredentials
, getProfiles
,
getSTSCredentials
,
parseCredentialFile
,
stsGenContentString
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.