forked from int128/terraform-aws-nat-instance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
30 lines (25 loc) · 932 Bytes
/
outputs.tf
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
output "eip_id" {
description = "ID of the Elastic IP"
value = var.enabled ? var.eip_creation ? aws_eip.this[0].id : "" : ""
}
output "eip_public_ip" {
description = "Public IP of the Elastic IP for the NAT instance"
value = var.enabled ? var.eip_creation ? aws_eip.this[0].public_ip : "" : ""
}
output "eni_id" {
description = "ID of the ENI for the NAT instance"
value = aws_network_interface.this.id
}
output "eni_private_ip" {
description = "Private IP of the ENI for the NAT instance"
# workaround of https://github.com/terraform-providers/terraform-provider-aws/issues/7522
value = tolist(aws_network_interface.this.private_ips)[0]
}
output "sg_id" {
description = "ID of the security group of the NAT instance"
value = aws_security_group.this.id
}
output "iam_role_name" {
description = "Name of the IAM role for the NAT instance"
value = aws_iam_role.this.name
}