read_credentials: Use Credentials from .aws/credentials File

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/read_credentials.R

Description

Use a profile from a .aws/credentials file

Usage

1
2
3

Arguments

file

A character string containing a path to a .aws/credentials file. By default, the standard/centralized file is used. For use_credentials, this can also be an object of class “aws_credentials” (as returned by use_credentials).

profile

A character string specifing which profile to use from the file. By default, the “default” profile is used.

Details

read_credentials reads and parses a .aws/credentials file into an object of class “aws_credentials”.

use_credentials uses credentials from a profile stored in a credentials file to set the environment variables used by this package.

Author(s)

Thomas J. Leeper <thosjleeper@gmail.com>

References

Amazon blog post describing the format

See Also

signature_v2_auth, use_credentials

Examples

1
2
3
4
5
6
7
8
## Not run: 
# set environment variables from a profile
use_credentials()

# read and parse a file
read_credentials()

## End(Not run)

zhangxing-love/qingstor.signature documentation built on May 23, 2019, 9:35 a.m.