-
Notifications
You must be signed in to change notification settings - Fork 821
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
prompt for AWS session token and re-prompt when it expires #11749
Comments
Hey @TheRealSyler 👋 thanks for raising this! As we begin to look at this in more depth, what is the error you're receiving after the session token expires? And to clarify, are you looking for a signal from the CLI to inform you that the token has expired and you must re-authenticate? |
@josefaidt the ideal thing would be to just be asked to login again something like this
i also forgot to add that you need to paste the session token into the environment in order for the login to work, there should probably be a separate issue for that. when trying to pull i get:
when trying to push i get:
the Session Identifier is empty i did not remove it for privacy. |
Ah thanks for clarifying @TheRealSyler ! Yes I agree that this flow can be improved, however this appears similar to #10484 and #407. I will adjust the title of this issue to support prompting and re-prompting for session tokens |
Hey @TheRealSyler for what it's worth, we can also increase the session duration from the IAM console (see below), as well as increase the
https://docs.aws.amazon.com/cli/latest/topic/config-vars.html |
How did you install the Amplify CLI?
yarn
If applicable, what version of Node.js are you using?
v16.14.0
Amplify CLI Version
10.6.1
What operating system are you using?
windows 11
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Describe the bug
When using
AWS access keys
authentication the token expires without asking to re authenticate.Expected behavior
amplify should ask to re authenticate if the token is expired.
Reproduction steps
XXXX.awsapps.com/start#/
and paste into terminalamplify init
chooseAWS access keys
for authenticationamplify pull --appId XXXXX --envName dev
useAWS access keys
for authenticationamplify pull
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: