aws-amplify / aws-amplify/amplify-cli
Amplify Init takes forever to complete
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### How did you install the Amplify CLI?
npm
### If applicable, what version of Node.js are you using?
24.16.0
### Amplify CLI Version
14.5.0
### What operating system are you using?
Windows
### 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
I have Amplify Gen 1 backend application. Running `amplify init` is taking 10+ mins. Same thing with amplify push. However, if I disconnect my internet after a minute or so of running `amplify init`, the init process completes instantly
### Expected behavior
`amplify init` must initialize the environment quickly as earlier. Most likely some backend endpoint is removed(down) and the application is stuck waiting for network calls
### Reproduction steps
Run `amplify init` in a Gen 1 backend application
### Project Identifier
_No response_
### Log output
```
# Put your logs below this line
```
### Additional information
_No response_
### Before submitting, please confirm:
- [x] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [x] I have removed any sensitive information from my code snippets and submission.
Contributor guide
Research direction
Start by reproducing the delay with `amplify init` and `amplify push` in a Gen 1 backend application on Windows, first with the reported Node.js and Amplify CLI versions. Trace the CLI entry points and network calls used by those commands; done means both commands complete promptly while connected, with a regression test covering the stalled request behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, node.js, typescript
- Domain
- backend, cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100