From 4e0325b7cc14212c5b107850dc34c84404c1a263 Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Tue, 16 Apr 2024 16:34:31 +0100 Subject: [PATCH] correct syntax for output in lab 2 --- 2-simple-example/README.md | 2 +- 2-simple-example/code/outputs.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/2-simple-example/README.md b/2-simple-example/README.md index 6a504d6..3a8ef47 100644 --- a/2-simple-example/README.md +++ b/2-simple-example/README.md @@ -25,7 +25,7 @@ I've also updated ```outputs.tf``` to show the public IP address of the instance ```terraform # Public IP of instance -out "instance_public_ip" { +output "instance_public_ip" { description = "Show the public IP of the instance deployed" value = aws_instance.test_ami.public_ip } diff --git a/2-simple-example/code/outputs.tf b/2-simple-example/code/outputs.tf index b64185d..61cacf6 100644 --- a/2-simple-example/code/outputs.tf +++ b/2-simple-example/code/outputs.tf @@ -27,7 +27,7 @@ output "nat_public_ips" { } # Public IP of instance -out "instance_public_ip" { +output "instance_public_ip" { description = "Show the public IP of the instance deployed" value = aws_instance.test_ami.public_ip }