getProfiles: getProfiles

Description Usage Arguments Details See Also Examples

Description

Find profile files, parse, and return combined credential/config profiles.

Usage

1
2
getProfiles(prefix = NULL, credentialFileName = NULL,
  configFileName = NULL, profileName = NULL)

Arguments

prefix

(string) the path to where credential/config files are stored

credentialFileName

(string) the arg name pretty much says it

configFileName

(string) the arg name pretty much says it

Details

If no prefix is provided, attempts to identify the default path given the OS detacted. The default parameters should be sufficient unless you have customized the credential/config files. It is assumed your credentials file follows the guidelines at: [AWS CLI Configuration and Credential Files](https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html)

See Also

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

Examples

1
2
3
4
5
6
7
8
getProfiles(
    prefix = '/path/to/files',
    credentialFileName = 'specialNameCredentials',
    configFileName = 'specialNameConfig'
)

#Maybe you don't have a config file, below processes the credential file and prints a soft warning about missing config.
getProfiles(configFileName = NULL)

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