Skip to content

Improved Consistency with Other Clients

Compare
Choose a tag to compare
@leeper leeper released this 03 Apr 09:20
· 137 commits to master since this release

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 of use_credentials() now defaults to Sys.getenv("AWS_PROFILE", "default") for consistency with other AWS client libraries.
  • locate_credentials() returns region = 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 for locate_credentials().

Bug fixes

  • read_credentials() now trims excess whitespace from profile names. (#22, h/t Paul Ingles)