-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare the application for demo with scripts and a README
- Loading branch information
Showing
5 changed files
with
82 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,4 +276,4 @@ application/data/ | |
application/app/frontend/node_modules/ | ||
node_modules | ||
aws/ | ||
api.txt | ||
application_url.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Make sure Terraform is installed | ||
(which terraform >> /dev/null) || echo "Terraform must be installed" && exit 1 | ||
|
||
# Make sure we have a credentials file | ||
[ ! -f credentials ] && echo "Missing credentials file!" && exit 1 | ||
|
||
# Move credentials for application to access | ||
cp credentials ./application | ||
|
||
source credentials | ||
|
||
terraform init | ||
terraform apply -auto-approve -var routing_engine_url="http://router.project-osrm.org" -var geocoding_engine_url="https://nominatim.openstreetmap.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Construct a credentials file | ||
if [ ! -f credentials ]; then | ||
echo "Generating credentials file" | ||
touch credentials | ||
else | ||
echo "You already have a credentials file" | ||
fi | ||
|