This commit is contained in:
Sam
2025-09-26 12:38:12 +00:00
parent 49c0913f2b
commit b2b2ad94b7
2 changed files with 8 additions and 5 deletions
+6 -3
View File
@@ -23,7 +23,11 @@ module "network" {
project = "TerraformBootcamp"
}
/*
data "azurerm_ssh_public_key" "kp" {
name = "terraform-kp"
resource_group_name = "terraform"
}
module "compute" {
source = "../../modules/compute"
resource_group_name = "terraform"
@@ -31,6 +35,5 @@ module "compute" {
subnet_id = module.network.subnet_ids["public"]
vm_size = "Standard_B1s"
admin_username = "azureuser"
ssh_public_key = "<your-ssh-public-key>"
ssh_public_key = data.azurerm_ssh_public_key.kp.public_key
}
*/