This repository consists of Terraform scripts and Bash tools for deploying service stack for the SMAD project to Azure. Main terraform script deploys
- Eclipse Hono
- Prometheus monitoring
- Jaeger tracing
- MongoDB for device registry
- InfluxDB for monitoring data
- Grafana and set of dashboards
- Ambassador
Included testing tools allow setting up and testing deployed Hono instance.
More in-depth setup and configuration can be found at SETUP.md
Architectural description of the codebase can be found at ARCHITECTURE.md
$ terraform -chdir=00_tfstate_storage init
$ terraform apply ./00_tfstate_storage
$ cd 01_storage_rg
$ terraform init
- Create a Terraform workspace
$ terraform workspace new [WORKSPACE NAME]
- Deploy persistent data file shares
$ cd ../
$ terraform apply ./01_storage_rg
Remember to edit main.tf
email variable to a real one for TLS certificate
$ cd 02_deployHono
$ terraform init
Create a Terraform workspace. Important: Use same workspace name as before in 01_storage_rg!
$ terraform workspace new [WORKSPACE NAME]
$ terraform apply
After deployment you can use following url for accessing services and adapters {terraform-workspace}.westeurope.cloudapp.azure.com
Hono registry: {terraform-workspace}.westeurope.cloudapp.azure.com/registry
Grafana: {terraform-workspace}.westeurope.cloudapp.azure.com/grafana
Jaeger: {terraform-workspace}.westeurope.cloudapp.azure.com/jaeger
This project was created by student group called SMADYASP, from University Of Oulu, Finland. Further development was done by University of Oulu.