tempCredentialHandler: tempCredentialHandler

Description Usage Arguments Details See Also

Description

Initializes a call to STS or pulls instance meta data

Usage

1
2
tempCredentialHandler(rootCredentials = NULL, roleArn = NULL,
  MFADeviceSerialNumber = NULL, Duration = "3600")

Arguments

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.

Details

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.

  1. 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.

  2. 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)

See Also

Other credential management functions: AWSRootCredentials, AWSTemporaryCredentials, RcurlAWS, credsFromInstanceMetadata, genCredentialFilePath, getCredentials, getProfiles, getSTSCredentials, parseCredentialFile, stsGenContentString


AlonzoBarnett/RcurlAWS documentation built on May 15, 2019, 10:47 a.m.