AppSync configuration removed from AWS-Exports during env init, checkout #1792
Open
Description
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v14.21.2
Amplify CLI Version
11.0.5
What operating system are you using?
Debian
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
When changing Amplif environments via the cli using "amplify init", the aws-exports.js file is updated, removing any existing appsync config that has already been deployed to the environment.
Expected behavior
The aws-exports.js file should be refreshed with the appsync configuration that has been deployed to the environment.
Reproduction steps
- Run amplify init
- Select existing environment
- Review aws-exports.js
Project Identifier
No response
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.