Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Added hostname to cloudformation example

Michal Rutkaff220f817bd7
diff --git a/gitlab-ci/README.md b/gitlab-ci/README.md
index 3a084b58b..503db5691 100644
--- a/gitlab-ci/README.md
+++ b/gitlab-ci/README.md
@@ -90,7 +90,7 @@ functional OpenRemote stack with valid SSL key. Within less than 10 minutes you
```bash
# Create stack
-aws cloudformation create-stack --stack-name OpenRemote --template-body file://gitlab-ci/aws-cloudformation.template.yml --parameters ParameterKey=DomainName,ParameterValue=developers.openremote.io ParameterKey=HostedZone,ParameterValue=true
+aws cloudformation create-stack --stack-name OpenRemote --template-body file://gitlab-ci/aws-cloudformation.template.yml --parameters ParameterKey=DomainName,ParameterValue=developers.openremote.io ParameterKey=HostedZone,ParameterValue=true ParameterKey=HostName,ParameterValue=myhost
```
@@ -102,7 +102,7 @@ Check the stack:
# Services -> CloudFormation -> Stacks -> OpenRemote -> Events tab
aws cloudformation describe-stacks --stack-name OpenRemote --query "Stacks[0].StackStatus"
-# Get the URL of the stack (it should be DomainName.HostName i.e. demo.developers.openremote.io in this example)
+# Get the URL of the stack (it should be DomainName.HostName i.e. myhost.developers.openremote.io in this example)
export URL=$(aws cloudformation describe-stacks --stack-name OpenRemote --query "Stacks[0].Outputs[?OutputKey=='PublicUrl'].OutputValue" --output text)
# Check if it gives valid response
@@ -111,17 +111,17 @@ curl -L -I $URL
# The output should look like this:
HTTP/1.1 302 Found
content-length: 0
-location: https://demo.developers.openremote.io/
+location: https://myhost.developers.openremote.io/
cache-control: no-cache
HTTP/1.1 302 Found
-location: http://demo.developers.openremote.io/main
+location: http://myhost.developers.openremote.io/main
content-length: 0
date: Sat, 18 Jul 2020 10:41:15 GMT
HTTP/1.1 302 Found
content-length: 0
-location: https://demo.developers.openremote.io/main
+location: https://myhost.developers.openremote.io/main
cache-control: no-cache
HTTP/1.1 302 Found