-
Notifications
You must be signed in to change notification settings - Fork 825
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
After version upgrade settings and configuration files look to be all out of date, and error: Missing region in config #13229
Comments
Hey @qwikag 👋 thanks for raising this! As we begin to look at this in more depth, what version of the CLI are you upgrading from? Unfortunately we do not currently support a {
"dev": {
"configLevel": "project",
"useProfile": true,
"profileName": "xyz"
}
} Please note for AWS SSO with IAM Identity Center you may also need a workaround in order for the CLI to properly fetch the credentials #4488 (comment) |
@josefaidt yes previously I did not need a profile flag but once this error arrived I had to try things. But the probelm I am raising is the fact that an upgrade is released but any projects running on do not get their metadata upgraded. Your comment about local-aws-info.json is great except there is no information about these attributes. I have searched high and low to find out what goes in this file. And a new pull into a new directory does not set this up as you suggest. so there too is the bug. Now on to your referred comments. But this ticket is not about that it is about the careless method of upgrades without ensuring the underlying projects will remain working. |
Hey @qwikag thanks for clarifying, and sorry to hear of the rough experience! Updates to the client libraries should not have a direct impact on the backend files, though was the Amplify CLI also upgraded? The inclusion of |
Closing due to inactivity |
|
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
20.3.1
Amplify CLI Version
12.4.0
What operating system are you using?
Windows 10
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no change to cloud resources.
Describe the bug
after upgrade of Next.js and Amplify-cli
I was able to
>amplify push --profile xyz
I did a machine restart and
>amplify push --profile xyz
no longer workedI was getting an error: Missing region in config
So after trying many things like project confgures etc nothing worked.
Nothing in the ~/.aws/config file had changed...
Next I pulled the amplify project into a new folder (non git)
and compared the settings (wildly different)
I think there is a fundamental issue with the way files are structure in older version and the latest versioin yet there is no update of the configuration files.
here is a compare of the files with differences... this is my main concernn is the upgrade did not adjust files to reflect what a new project pull would have.
Left
Expected behavior
no issue with region
Reproduction steps
updgrade next.js from 13.4.10 to 13.4.19
and amplify from 5.3.10 to 5.3.11
plus other dependancies
but no auth changes
Project Identifier
1aff16e72d6657e6251bd6a212fd28ac
Log output
Missing region in config
Additional information
OK
after upgrade this file is the cause:
local-aws-info.json
after upgrade it looked like this:
so I did a fresh pull into a new folde and this was what the new project looked like
so I adjusted the original project and everything back to normal.
SO, the issue here is there is no upgrade path/process! and the upgrade of amplify left me broken
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: