diff --git a/.travis.yml b/.travis.yml
index 2f664eecf36..62f3b5e4a0d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,8 +19,7 @@ before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
script: mvn install -DargLine="-Dlogback.configurationFile=src/test/resources/travis_logback.xml"
after_success:
-- test "${TRAVIS_PULL_REQUEST}" == "false" && test "${TRAVIS_TAG}" != "" && ./travis/publish_to_bintray.sh
- && ./docker/publish_docker.sh && ./aws/create_aws_ami.sh
+- test "${TRAVIS_PULL_REQUEST}" == "false" && test "${TRAVIS_TAG}" != "" && ./travis/publish_to_bintray.sh && ./aws/create_aws_ami.sh && ./docker/publish_docker.sh
env:
global:
- secure: fqS3OabyL+omMi6eCwajizY6uVq9sXVFmpECPtAfMNsTDh3mh4I2zo6puSZszMWp1+Oc9I1ZO1TvJjrrbEuhfuONT7SMd8U2L8jmtXXLwv1AKn/3IpmAF9PvU723hO9oO5SZDU79dRrlaEDRnoJHeJh1PG2j2vtCEGNZCZ2btNGP5g00yHcMjMUU5kSI113iuRMQLyZuT7WaoCJO8GXXJfTx37seiW4c77Kj+1J/icVhcx4eF/ZOQRXgGAkZo7sPcmuKmBb95eUjgx3guiK2M1pU+oaivaOp1Qm4mkVE9W9p7zYThmrTvIElFHXbGEI9ATDYC+lhi764hj9IIicKF4c6Nghtl6rlrazbJvxYPbyMbURjnVEmzUFn0hhq8vwwBsoqbxJ07Vn0IAoYaAWq0pP9wWUuTYq0yD/BsiFbek4ewwki2QXjr5ZpMFiRymnyn4dqcKXApHL6wDSMmJZ/9ZSadHkOF4b4T3exNd4h6JA6OioErstlPimPjsi7rtR2IkedOYwcYmUKsJ2Wn5fOfNxI6Rg9HfGrtlM1wiIIMbxTxJduwPluuqsPQsu2gHPEXrjqyyE+A9fP1fQPF41vZXnSY+7iCzPn/bZsjSUohHS9GJQvfQ2Np6r2zAbhBo9zFaP7PVBh6IGpAMWYIFg7CQportIjv46pn6cP2e1MMhc=
diff --git a/assembly/ui/ui.xml b/assembly/ui/ui.xml
index 00f5b8d2989..57e3e8c557e 100644
--- a/assembly/ui/ui.xml
+++ b/assembly/ui/ui.xml
@@ -56,6 +56,10 @@
node_modules/
+
+ ${basedir}/../../libs/nodejs/auth_core/node_modules
+ node_modules
+
${basedir}/../../ui/src
src
diff --git a/aws/create_aws_ami.sh b/aws/create_aws_ami.sh
index 59388ccee6a..313e876e249 100755
--- a/aws/create_aws_ami.sh
+++ b/aws/create_aws_ami.sh
@@ -36,7 +36,7 @@ cd $CUR_DIR
#run packer
export BASE_AMI_ID=ami-a58d0dc5
-sudo ${PACKER_DIR}/packer build -machine-readable ./aws/athenz_ami.json && touch .ami
+sudo -E ${PACKER_DIR}/packer build -machine-readable ./aws/athenz_ami.json && touch .ami
echo "-----------------------------------------------"
echo "Athenz AWS AMI Completed"
diff --git a/aws/start.sh b/aws/start.sh
index 8ec1f798f36..9764d445b06 100755
--- a/aws/start.sh
+++ b/aws/start.sh
@@ -14,12 +14,12 @@ if [ ! -f "./var/zms_server/keys/zms_private.pem" ]; then
bin/setup_dev_zms.sh
fi
-hostname=`hostname`
+hostname=`hostname -f`
public_hostname=`curl http://169.254.169.254/latest/meta-data/public-hostname`
sudo -E bin/zms start
set +e
-for i in {1..10};
+for i in `seq 1 20`;
do
status=$(curl -k -s -w %{http_code} --output /dev/null https://$hostname:4443/zms/v1/schema)
if [ $status -eq "200" ]; then
diff --git a/docker/start.sh b/docker/start.sh
index 47d85544f58..ee2ae1edfe3 100755
--- a/docker/start.sh
+++ b/docker/start.sh
@@ -14,12 +14,12 @@ if [ ! -f "./var/zms_server/keys/zms_private.pem" ]; then
bin/setup_dev_zms.sh
fi
-hostname=`hostname`
-public_hostname=`hostname`
+hostname=`hostname -f`
+public_hostname=`hostname -f`
sudo -E bin/zms start
set +e
-for i in {1..10};
+for i in `seq 1 20`;
do
status=$(curl -k -s -w %{http_code} --output /dev/null https://$hostname:4443/zms/v1/schema)
if [ $status -eq "200" ]; then
diff --git a/docker/stop.sh b/docker/stop.sh
index a080ee5fcf6..3485794c326 100755
--- a/docker/stop.sh
+++ b/docker/stop.sh
@@ -9,7 +9,7 @@ sudo -E bin/zms stop
echo "---stopping ui---"
cd /opt/athenz/athenz-ui*
-public_hostname=`hostname`
+public_hostname=`hostname -f`
export ZMS_SERVER=$public_hostname
export UI_SERVER=$public_hostname
bin/athenz_ui stop
diff --git a/docs/setup_aws.md b/docs/setup_aws.md
index b69ff3abfc4..21647a40a6d 100644
--- a/docs/setup_aws.md
+++ b/docs/setup_aws.md
@@ -5,6 +5,7 @@
* [AWS Account](#aws-account)
* [Launch EC2 instance](#launch-ec2-instance)
* [Start/Stop Athenz](#startstop-athenz)
+* [Access Athenz UI](#access-athenz-ui)
## Requirements
---------------
@@ -98,19 +99,36 @@ They're running on the following ports:
| ZTS | 8443 |
| UI | 9443 |
-To access Athenz UI, open your browser with url https://{ec2-instance-public-dns-name}:9443/athenz
+To stop Athenz, execute the following commands:
+
+```shell
+$ cd /opt/athenz
+$ sudo ./stop.sh
+```
+
+## Access Athenz UI
+-------------------
+
+To access Athenz UI, open your browser with url
+
+```
+https://:9443/athenz
+```
+
Since the services are running with self-signed certificates, configure your browser to
ignore the warnings regarding the UI server certificate.
+The administrator must first access the ZMS Server endpoint in the browser to
+accept the exception since the Athenz UI contacts ZMS Server to get an authorized
+token for the user when logging in. The administrator must access:
+
+```
+https://:4443/zms/v1/schema
+```
+
The instance is configured with the following default user details:
| User | Password |
|--------|----------|
| athenz | athenz |
-To stop Athenz, execute the following commands:
-
-```shell
-$ cd /opt/athenz
-$ sudo ./stop.sh
-```
diff --git a/docs/setup_ui.md b/docs/setup_ui.md
index ef9abb225e0..22ab021d2a0 100644
--- a/docs/setup_ui.md
+++ b/docs/setup_ui.md
@@ -112,10 +112,10 @@ servers into his/her own web browser.
The administrator must first access the ZMS Server endpoint in the browser to
accept the exception since the Athenz UI contacts ZMS Server to get an authorized
-token for the user when logging in. The administrator must access
+token for the user when logging in. The administrator must access:
```
-https://:4443
+https://:4443/zms/v1/schema
```
first and accept the certificate exception before accessing Athenz UI.