hashicorp terraform
This document calls out getting started with Terraform
1: Ensure we install all the pre-reqs on your station.
Installation of Terraform & Azure CLI
# install choco
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Powershell
choco install pwsh -y
# Aspnetcore
choco install dotnetcore-windowshosting -y
choco install dotnetcore -y
choco install dotnetcore-2.0-sdk -y
choco install dotnetcore-2.1-sdk -y
choco install dotnetcore-2.2-sdk -y
choco install dotnetcore-3.0-sdk -y
choco install dotnetcore-3.1-sdk -y
choco install dotnetcore3-desktop-runtime -y
choco install dotnetcore-3.1-runtime -y
choco install dotnet-5.0-runtime -y
choco install dotnet-5.0-sdk -y
choco install netfx-4.8 -y
choco install dotnetfx -y
# install Azure CLI via choco
choco install azure-cli -y
az extension add --name azure-cli-iot-ext
# PSQL:
choco install postgresql12 -y
# Hashi Consul/Vault/Terraform
choco install consul -y
choco install choco install vault -y
choco install terraform -y
# docker/Kubernetes/helm
choco install docker-desktop -y
choco install kubernetes-cli -y
choco install kubernetes-helm -y
# Python
choco install python -y
# node
choco install nodejs -y
Setup your Env Variables with SPN for Azure
Install openssl
2: Setup your environment variables:
Windows
Ubuntu
3: Generate a ssh key to be used for securing the deployment:
Convert root cert token for API gateway to base64
β4: Setup your Workspace
Setup your workspace
5: Setting up Remote State for Terrafrom
6: Run the initial Terraform deploy of shared stuffs:
7. Run the Terraform DB Schema
8: Export the k8s credentials:
9: Generate Secrets used for ingress
10: Deploy the API
11. Initialize the Hashi Vault in a VM
12: Install default values into Vault
Last updated