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
fix: botocore sessions across samcli #1693
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
will rebase once #1681 is merged. |
sanathkr
reviewed
Dec 26, 2019
What is the problem? | ||
-------------------- | ||
|
||
SAM CLI does not have first class support for MFA based authentication, which leads to multiple requests for such tokens degrading the overall CLI experience. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding a design doc!
sriram-mv
force-pushed
the
sessions_manager
branch
from
January 2, 2020 20:43
eadf127
to
36106d1
Compare
sanathkr
approved these changes
Jan 2, 2020
sriram-mv
force-pushed
the
sessions_manager
branch
from
January 3, 2020 20:50
36106d1
to
abf0665
Compare
sriram-mv
force-pushed
the
sessions_manager
branch
from
January 3, 2020 21:22
abf0665
to
3d7395d
Compare
sriram-mv
added a commit
to sriram-mv/aws-sam-cli
that referenced
this pull request
Jan 7, 2020
This reverts commit 2d71af8.
sriram-mv
added a commit
that referenced
this pull request
Jan 7, 2020
sriram-mv
commented
Jan 23, 2020
@@ -144,6 +147,11 @@ def _refresh_session(self): | |||
""" | |||
try: | |||
boto3.setup_default_session(region_name=self._aws_region, profile_name=self._aws_profile) | |||
# get botocore session and setup caching for MFA based |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes
sriram-mv
added a commit
that referenced
this pull request
Jan 23, 2020
sriram-mv
added a commit
to sriram-mv/aws-sam-cli
that referenced
this pull request
Jan 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix: botocore sessions across samcli
Why is this change necessary?
How does it address the issue?
What side effects does this change have?
TODO?
Depends on:
sam deploy
#1681