Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit profile overrides environment variables #486

Merged
merged 7 commits into from
Mar 18, 2015

Commits on Mar 16, 2015

  1. Explicit profile overrides environment variables

    This changes the behavior of environment variable credential loading to
    function as described in aws/aws-cli#113. Here is what this looks like
    for both the CLI and Botocore/Boto 3:
    
    CLI:
    ```bash
    $ AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar aws s3 ls
    
    $ AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar aws --profile dev s3 ls
    ```
    
    Python:
    ```python
    $ AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar python
    >>> import boto3
    >>> boto3.setup_default_session(profile_name='dev')
    >>> # The following will use the profile, not the env vars!
    >>> s3dev = boto3.resource('s3')
    ```
    
    Added a test and a new log message to ensure it's obvious what is happening.
    danielgtaylor committed Mar 16, 2015
    Configuration menu
    Copy the full SHA
    cfc5a92 View commit details
    Browse the repository at this point in the history
  2. Add integration tests

    danielgtaylor committed Mar 16, 2015
    Configuration menu
    Copy the full SHA
    856eaec View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2015

  1. Configuration menu
    Copy the full SHA
    ae1f175 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    616f70c View commit details
    Browse the repository at this point in the history
  3. Remove unneeded mock

    danielgtaylor committed Mar 17, 2015
    Configuration menu
    Copy the full SHA
    d7cd6d2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d17c52d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d0e7add View commit details
    Browse the repository at this point in the history