aws-amplify / aws-amplify/amplify-cli
Can't script ServerlessContainers for CI - always promts users input
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
amplify-cli/packages/amplify-cli/sample-headless-scripts/headless_configure_project.sh script not working anymore. It prompts
`Do you want to enable container-based deployments? (y/N) `
but it used to work 1 month ago.
**Amplify CLI Version**
4.41.2
**To Reproduce**
to run the script
**Expected behavior**
no promts
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
Ubuntu
**Additional context**
Attempt like this:
`REACTCONFIG="{\
\"SourceDir\":\"src\",\
\"DistributionDir\":\"out\",\
\"BuildCommand\":\"npm run-script build\",\
\"StartCommand\":\"npm run-script start\",\
\"ServerlessContainers\":false\
}"`
not working either with the same result
Contributor guide
Research direction
Start with amplify-cli/packages/amplify-cli/sample-headless-scripts/headless_configure_project.sh and run it using the ServerlessContainers:false configuration shown in the issue. Trace where that setting is handled and compare the current behavior with the reported prompt. Done means the headless CI script completes without prompting users when ServerlessContainers is false.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell, typescript
- Domain
- ci-cd, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100