aws-amplify / aws-amplify/amplify-cli

Can't script ServerlessContainers for CI - always promts users input

Open
#6,391 3 comments 0 reactions 0 assignees View on GitHub
bug containers headless p3 strategic
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.
![image](https://user-images.githubusercontent.com/13963337/104648320-4283ca00-56b3-11eb-9ed5-1470d578caf7.png)

**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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.