The repo contains reusable Terraform code to deploy Azure ASEv3 for Azure Integration Projects based on the below architecture
-
Bash
-
Terraform 1.3.0+
-
Azure CLI
-
Authenticated connection to Azure, using Azure CLI
az login --tenant <TENANT_ID>
-
GitHub Repo
-
A GitHub PAT token (full scope) for the relevant repo
clone the repo from develop branch
git clone -b develop [email protected]:sysco-middleware/Azure-ASEv3-Terraform.git
You can use the Dockerfile
to build a container with all required softwares installed (Terraform, Azure CLI.,) or install all the softwares on your system manually
If using Dockerfile
, you can mount the working directory to container and work on it
# Build the image
docker build -t azure-sre .
# Run docker container with `SRE-Kubernetes` directory mounted as volume
docker run --rm -it -v "$PWD/azure-terraform:/root/azure-terraform" --name azure-terraform azure-sre
Authenticate to use Azure CLI
az login --tenant <TENANT_ID>
Select the correct subscription to deploy the resources
az account set --subscription <SUBSCRIPTION_ID>
Update the variables file
cp quistart-variables.example terraform.tfvars
vi terraform.tfvars
Run Terraform
terraform init
terraform validate
terraform plan -out plan.out
terraform apply plan.out