updating terraform
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
output "my_ip" {
|
||||
value = local.my_ip
|
||||
}
|
||||
Reference in New Issue
Block a user