- Conncte your Azure CLI to your Azure accont-
az login
. - Add
secretVars.tfvar
file with this content of variabls (the users names and passwords for you virtual machines.):
variable "dbuser" { default = "<userName>" }
variable "dbpass" { default = "<password>" }
variable "appuser" { default = "<userName>" }
variable "apppass" { default = "<password" }
- Run
terraform apply
(in the project directory). - Now you can connect your machines through bastion in your azure portal and use the bash scripts (in the configureVMs_scripts directory) to inatall the app and the DB on them. (Make sure to configure the ENV file in the DB server with your own credentials , okta, okta ID , Password, IP of the machines etc. ).
To upload the terraform state to azure storage, you need to cancel the comment inside the "backetStateConfiguration.tf" file. And change the storage attributes names to your own.
You need to run terraform init
again, to apply the backend configuration.
You can read more details about this terraform module in the automated documentation: Terraform-docs