feat: deploy 2 machines

This commit is contained in:
Ditmar Visser
2025-06-03 14:46:26 +00:00
parent ae4896865c
commit 9908a3408a
6 changed files with 278 additions and 0 deletions

29
opdracht-1/variables.tf Normal file
View File

@@ -0,0 +1,29 @@
variable "azure_subscriptionid" {
description = "ID of the Azure Subscription."
sensitive = true
}
variable "azure_resourcegroup" {
description = "Name of the Azure Resource Group."
}
variable "azure_location" {
description = "Location of the Azure resources"
default = "westeurope"
}
variable "azure_user" {
description = "User that will gain access to the Azure vm's"
default = "iac"
}
variable "prefix" {
description = "The Prefix used for all resources"
default = "week-4-opdracht-1"
}
# Pull the SSH public key from Azure Key Vault
data "azurerm_ssh_public_key" "azure" {
name = "azure"
resource_group_name = var.azure_resourcegroup
}