aws-amplify / aws-amplify/amplify-cli
Automate amplify add hosting with bash
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
** Which Category is your question related to? **
Hosting
** What AWS Services are you utilizing? **
Cloudfront and S3
** Provide additional details e.g. code snippets **
I'm trying to built an automatic deployment pipeline for an application and I have some problems with `amplify add hosting`. The script is asking to choose between DEV and PROD (using arrow keys) and then asks for the bucket name and endpoints (index.html)
I'm deploying from an Ubuntu 18.04 and I successfully inejcted the DOWN arrow key to select the prod value but after that, the script is not reading anymore :
`echo -e "\033[B" | amplify add hosting` will select PROD, but will crash immediately since EOF is sent.
I tried adding other stuff after like so :
`echo -e "\033[B\nbucketname"` and the script just crashes
If I try to input all the values asked and I have the same result :

Are there any options that I missed for sending values as arguments and preventing the console to ask to manually set the values (I tried to use the --yes option but obviously it was not working).
Contributor guide
Assessment
This issue has not been assessed yet.