aws-amplify / aws-amplify/amplify-cli

Automate amplify add hosting with bash

Open
#2,523 6 comments 2 reactions 0 assignees View on GitHub
feature-request hosting p3
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 :

![screen](https://user-images.githubusercontent.com/34541598/66397863-3e570000-e9cc-11e9-8e8a-d0a09b6ed742.jpg)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.