Skip to content

Instantly share code, notes, and snippets.

@gmirsky
Last active September 2, 2024 21:55
Show Gist options
  • Select an option

  • Save gmirsky/7e43121ab6118896397ffe66aa2ebd9a to your computer and use it in GitHub Desktop.

Select an option

Save gmirsky/7e43121ab6118896397ffe66aa2ebd9a to your computer and use it in GitHub Desktop.
terraform get my ip address
data "http" "icanhazip" {
url = "http://icanhazip.com"
}
output "my_terraform_environmnet_public_ip" {
value = "${chomp(data.http.icanhazip.body)}"
}
@AlexanderMakarov
Copy link

Thank you! Useful thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment