Improved Consistency with Other Clients
This is a minor release that includes some important changes to the behavior of locate_credentials()
and also includes the default use of an AWS credentials file if present, making the behavior of this (and all other cloudyr packages) more consistent with clients for other languages and the AWS CLI.
Changes to user-visible behavior
- On namespace load, the package now checks for the presence of environment variables and, if absent, attempts to call
use_credentials()
(with defaults) to that behavior is more similar to other AWS client libraries. (cloudyr/aws.s3#184, h/t Dan Tenenbaum) - The
profile
argument ofuse_credentials()
now defaults toSys.getenv("AWS_PROFILE", "default")
for consistency with other AWS client libraries. locate_credentials()
returnsregion = default_region
even when no other credentials are found.locate_credentials()
now attempts to look in instance metadata for a region, when called from an EC2 instance. Updated documentation to describe the need for aws.ec2metadata on EC2 instances. (see cloudyr/aws.s3#151)- The set of fall backs for values of
region
have been standardized and documented forlocate_credentials()
.
Bug fixes
read_credentials()
now trims excess whitespace from profile names. (#22, h/t Paul Ingles)