You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adcanis opened this issue
Mar 29, 2023
· 1 comment
Labels
bugSomething isn't workingduplicateIf marked with duplicate, issue will be closed & original will be added for traceabilityplatformIssues tied to the general CLI platform
following the instructions in Command line or programmatic access found on the "start url" using aws configure sso and following "option 2" to add credentials to .aws/credentials
run aws sso login --profile <profile name>
initialize a new amplify project with amplify init
observe first error
if session has expired, re-login via aws sso login --profile <profile name>
run amplify push -y for example and observe second error
Project Identifier
2274433f-fcef-4f58-baf3-6ebb90e99a30
Log output
# Put your logs below this line
Additional information
No response
Before submitting, please confirm:
I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
I have removed any sensitive information from my code snippets and submission.
The text was updated successfully, but these errors were encountered:
Hey @adcanis thanks for raising this and apologies for the confusion! As mentioned in #12174 the fix is pending-release. I'll mark this as a duplicate and close in favor of tracking the existing item, but will update #12174 once this is released
josefaidt
added
bug
Something isn't working
platform
Issues tied to the general CLI platform
duplicate
If marked with duplicate, issue will be closed & original will be added for traceability
and removed
pending-triage
Issue is pending triage
labels
Mar 29, 2023
bugSomething isn't workingduplicateIf marked with duplicate, issue will be closed & original will be added for traceabilityplatformIssues tied to the general CLI platform
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
19.6.0
Amplify CLI Version
11.0.3
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no manual changes made
Describe the bug
#12174 still persisting. This appears to be happening after the account exceeds the 8hr expiration. Attempts to re-login return 1 of 2 errors.
This error is on
amplify init
This is every time an amplify command is ran after
aws sso login --profile <profile>
to re-login.Following #7361 clearing the cookies on the start page, emptying
.aws/sso/cache
does not work. This is currently effecting 9 accountsExpected behavior
re-login should refresh token and commands should work
Reproduction steps
from this doc, enable IAM identity center and create an org
add an account under "Multi-account permissions" > "AWS Accounts"
create a permissions set
create a group with permission set
create a user (e.g. "adcanis"), assign to group
grant access to the account added in step 2
log in using the "start url" (e.g. https://xxxxxx.awsapps.com/start)
following the instructions in
Command line or programmatic access
found on the "start url" usingaws configure sso
and following "option 2" to add credentials to.aws/credentials
run
aws sso login --profile <profile name>
initialize a new amplify project with
amplify init
observe first error
if session has expired, re-login via
aws sso login --profile <profile name>
run
amplify push -y
for example and observe second errorProject Identifier
2274433f-fcef-4f58-baf3-6ebb90e99a30
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: