correct syntax for output in lab 2
This commit is contained in:
parent
f687a6e9d7
commit
4e0325b7cc
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ I've also updated ```outputs.tf``` to show the public IP address of the instance
|
||||||
|
|
||||||
```terraform
|
```terraform
|
||||||
# Public IP of instance
|
# Public IP of instance
|
||||||
out "instance_public_ip" {
|
output "instance_public_ip" {
|
||||||
description = "Show the public IP of the instance deployed"
|
description = "Show the public IP of the instance deployed"
|
||||||
value = aws_instance.test_ami.public_ip
|
value = aws_instance.test_ami.public_ip
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ output "nat_public_ips" {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Public IP of instance
|
# Public IP of instance
|
||||||
out "instance_public_ip" {
|
output "instance_public_ip" {
|
||||||
description = "Show the public IP of the instance deployed"
|
description = "Show the public IP of the instance deployed"
|
||||||
value = aws_instance.test_ami.public_ip
|
value = aws_instance.test_ami.public_ip
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue