Add my IP address to terraform outputs

This commit is contained in:
Erik Stambaugh 2024-01-20 14:38:00 -08:00
parent 0d02812bd1
commit 74b5323aa3
2 changed files with 7 additions and 2 deletions

View file

@ -6,6 +6,10 @@ provider "aws" {
resource "random_pet" "name" {} resource "random_pet" "name" {}
data "http" "myip" {
url = "http://ipv4.icanhazip.com"
}
module "vpc" { module "vpc" {
source = "terraform-aws-modules/vpc/aws" source = "terraform-aws-modules/vpc/aws"

View file

@ -12,8 +12,9 @@ output "nameservers" {
output "s3_bucket_name" { output "s3_bucket_name" {
value = module.s3_bucket.s3_bucket_id value = module.s3_bucket.s3_bucket_id
} }
#output "myip" { output "myip" {
#} value = "${chomp(data.http.myip.body)}"
}
#output "aws_route53_zone" { #output "aws_route53_zone" {
# value = local.route53_zone # value = local.route53_zone