Please enable JavaScript.
Coggle requires JavaScript to display documents.
Terraform with Azure (Infrastructure As Code (IaC) (Purpose (Provisioning,…
Terraform with Azure
Infrastructure As Code (IaC)
Purpose
Provisioning
Manage
Target
Infrastructure
On Premises
Cloud
Azure
AWS
many more...
Service
Language
HCL (Hashicorp Configuration Language)
Optionally JSON
Installation
Version 12
IDE
VS Code
Terraform Extension by Mikael Olenfalk
Install Terraform
Download
https://www.terraform.io
macOS
Windows
Standalone Executeable
Copy File to folder
Add to PATH
Linux
Azure Konfiguration
Remote Configuration
Azure CLI
https://docs.microsoft.com/de-de/cli/azure/install-azure-cli?view=azure-cli-latest
Credentials
Create SPN (App Registrations)
Client Secret
Client_Secret_id :pencil2:
Tenant_id :pencil2:
Client_id :pencil2:
Subscription
Subscription_id :pencil2:
SPN Authorization (IAM)
Role Contributor
Azure Cloud Shell
needs Storage (disk) configuration
Storage costs
Area of Influence
Inside Subscription
can not affect other subscriptions
Template
Provider Specific Modules
Azure Provider
https://www.terraform.io/docs/providers/azurerm/index.html
https://www.terraform.io/docs/providers/index.html
Commands
terraform init
Projekt initialization
in working directory
create state files
terraform plan
validates code
create execution plan
terraform apply
deploys changes on platform
Terraform State
Current state of infrastructure
Terraform installs changes only
JSON-File
Never manipulate it !!! :fire:
terraform.tfstate