-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoutput.tf
More file actions
31 lines (26 loc) · 754 Bytes
/
output.tf
File metadata and controls
31 lines (26 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
output "public_ip" {
description = "Contains the public IP address"
value = aws_instance.server.public_ip
}
output "public_dns" {
description = "Public DNS associated with the dynamic IP address"
value = aws_instance.server.public_dns
}
*/
output "instance_id" {
description = "ID of identify of instance"
value = aws_instance.server.id
}
output "instance_type" {
description = "Type of instance to create"
value = aws_instance.server.instance_type
}
output "public_ip" {
description = "Contains the public static IP address"
value = aws_eip.eip-us-east-1.public_ip
}
output "public_dns" {
description = "Public DNS associated with the Elastic IP address"
value = aws_eip.eip-us-east-1.public_dns
}