updating terraform

This commit is contained in:
comerford0
2025-10-02 09:59:10 +00:00
parent c12311ab9f
commit af6e73101f
4 changed files with 21 additions and 7 deletions
+8
View File
@@ -33,6 +33,13 @@ data "azurerm_ssh_public_key" "sd" {
resource_group_name = "terraform"
}
data "http" "my_ip" {
url = "https://checkip.amazonaws.com/"
}
locals {
my_ip = chomp(data.http.my_ip.response_body)
}
module "compute" {
source = "../../modules/compute"
@@ -42,4 +49,5 @@ module "compute" {
vm_size = "Standard_B1s"
admin_username = "azureuser"
ssh_public_key = data.azurerm_ssh_public_key.sd.public_key
ex_ip = local.my_ip
}
+3
View File
@@ -0,0 +1,3 @@
output "my_ip" {
value = local.my_ip
}