Phase1-2
This commit is contained in:
@@ -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
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user