-
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
Failed to pull the backend. #14065
Comments
Hey @GrowingCompany, thank you for reaching out. Wanted to get some additional information on this. were there any changes in the |
Thanks for the reply. Yes. While pull the backend, generate amplify/.config and apparently filled in aws-export.js. |
Hey @GrowingCompany, wanted to reconfirm the information provided. On running a pull were the correct config and |
I'm pulling an existing environment on aws-amplify. |
@GrowingCompany thank you for the information. From the project identifier, noticed this project appears contain a unmigrated auth resource as the build CloudFormation template uses a yml file. |
Finally, amplify pull done. downgrade amplify-cli [email protected] works for the issue. For your information, project setup specifications below,
So should I keep the version of [email protected]? |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
18.20.4
Amplify CLI Version
12.14.0
What operating system are you using?
Mac Sequoia 15.1.1
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Describe the bug
I have a published service in the web and work on making a new project with the same amplify server.
While I'm setting up the project, amplify pull has been failed.
Expected behavior
Succeed pull the backend
Reproduction steps
command amplify pull
put credentials
? Please choose the profile you want to use default
? Which app are you working on? ###
? Pick a backend environment: master
? Choose your default editor: Visual Studio Code
✔ Choose the type of app that you're building · javascript
Please tell us about your project
? What javascript framework are you using react
? Source Directory Path: src
? Distribution Directory Path: build
? Build Command: npm run-script build
? Start Command: npm run-script start
got failed
Project Identifier
76cd9fdb-58cf-4b29-bc4b-ad21fb9b3f02
Log output
Do you plan on modifying this backend? Yes
⠴ Fetching updates to backend environment: master from the cloud.Overrides functionality is not implemented for this category
✔ Successfully pulled backend environment master from the cloud.
✖ There was an error initializing your environment.
🛑 Failed to pull the backend.
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
PullBackendFault: Failed to pull the backend.
at attachBackend (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend.js:55:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/commands/pull.js:64:9)
at async Object.executeAmplifyCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:194:9)
at async executePluginModuleCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
at async executeCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)
Unable to parse aws-exports.js. Has this file been modified?
Error: Unable to parse aws-exports.js. Has this file been modified?
at getCurrentAWSExports (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-frontend-javascript/lib/frontend-config-creator.js:301:13)
at getAWSExports (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-frontend-javascript/lib/frontend-config-creator.js:158:35)
at createAWSExports (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-frontend-javascript/lib/frontend-config-creator.js:150:31)
at Object.createFrontendConfigs (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-frontend-javascript/index.js:49:16)
at AmplifyToolkit.onCategoryOutputsChange (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/on-category-outputs-change.js:49:37)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async initializeEnv (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/initialize-env.js:143:9)
at async onSuccess (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend.js:81:17)
at async attachBackend (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend.js:50:9)
at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/commands/pull.js:64:9)
at async Object.executeAmplifyCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:194:9)
at async executePluginModuleCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
at async executeCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: