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

Set default AWS profile earlier #662

Merged
merged 1 commit into from
Sep 26, 2018
Merged

Set default AWS profile earlier #662

merged 1 commit into from
Sep 26, 2018

Conversation

ejholmes
Copy link
Contributor

@ejholmes ejholmes commented Sep 25, 2018

This moves where we set session_cache.default_profile to run before we call load_config.

Before this change, if you had a custom lookup that made AWS API calls, it would not run under the profile provided via --profile on the command line.

This allows any custom lookups that perform initialization to use session_cache.get_session and get the expected results when --profile was provided on the command line.

Copy link
Member

@phobologic phobologic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ejholmes ejholmes merged commit 5061480 into master Sep 26, 2018
@ejholmes ejholmes deleted the earlier-default-profile branch September 26, 2018 01:34
phrohdoh pushed a commit to phrohdoh/stacker that referenced this pull request Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants