Improve signposting of IAM api call restrictions#1057
Merged
mtibben merged 1 commit into99designs:masterfrom Oct 19, 2022
Merged
Improve signposting of IAM api call restrictions#1057mtibben merged 1 commit into99designs:masterfrom
mtibben merged 1 commit into99designs:masterfrom
Conversation
PR related to 99designs#1056 * Flag issue during 'Rotating credentials' section * Expand 'Temporary credentials limitations with STS, IAM' with 1) error user will encounter, 2) mitigations * ?correct? possible existing type in 'MFA' section (however I'm unsure if the entire sentence is valid)
Member
|
Thanks @ChristopherHackett |
sftim
reviewed
Feb 23, 2023
sftim
left a comment
There was a problem hiding this comment.
A post-merge review. No need to redo anything.
Comment on lines
+379
to
+382
| ```shell | ||
| $ aws-vault exec <iam_user_profile> -- aws iam get-user | ||
| An error occurred (InvalidClientTokenId) when calling the GetUser operation: The security token included in the request is invalid | ||
| ``` |
There was a problem hiding this comment.
This isn't a valid shell script - watch out for marking it as one.
| An error occurred (InvalidClientTokenId) when calling the GetUser operation: The security token included in the request is invalid | ||
| ``` | ||
|
|
||
| For restricted IAM operation you can add MFA to the IAM User and update your ~/.aws/config file with [MFA configuration](#mfa). Alternately you may avoid the temporary session entirely by using `--no-session`. |
There was a problem hiding this comment.
Suggested change
| For restricted IAM operation you can add MFA to the IAM User and update your ~/.aws/config file with [MFA configuration](#mfa). Alternately you may avoid the temporary session entirely by using `--no-session`. | |
| If you configure MFA for your the IAM user and update your ~/.aws/config file with [MFA configuration](#mfa) | |
| then AWS does not apply those restrictions. For some operations, you can instead use the long-term | |
| credentials (skipping use of a session) by using the `--no-session` option to `aws-vault`. |
This file contains hidden or 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
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.
PR related to #1056