-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathoutputs.tf
68 lines (58 loc) · 1.8 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
output "id" {
description = "The ID of the NAT Gateway."
value = aws_nat_gateway.this.id
}
output "name" {
description = "The name of the NAT Gateway."
value = var.name
}
output "is_private" {
description = "Whether the NAT Gateway supports public or private connectivity."
value = aws_nat_gateway.this.connectivity_type == "private"
}
output "availability_zone" {
description = <<EOF
The availability zone of the NAT Gateway.
`id` - The ID of the availability zone.
`name` - The name of the availability zone.
EOF
value = {
id = data.aws_subnet.this.availability_zone_id
name = data.aws_subnet.this.availability_zone
}
}
output "vpc_id" {
description = "The VPC ID of the NAT Gateway."
value = data.aws_subnet.this.vpc_id
}
output "subnet" {
description = <<EOF
The subnet which the NAT Gateway belongs to.
`id` - The ID of the subnet.
`arn` - The ARN of the subnet.
EOF
value = {
id = aws_nat_gateway.this.subnet_id
arn = data.aws_subnet.this.arn
}
}
output "elastic_ip" {
description = "The Allocation ID of the Elastic IP address for the gateway."
value = aws_nat_gateway.this.allocation_id
}
output "netework_interface" {
description = "The ENI ID of the network interface created by the NAT gateway."
value = aws_nat_gateway.this.network_interface_id
}
output "primary_public_ip" {
description = "The public IP address of the NAT Gateway."
value = aws_nat_gateway.this.public_ip
}
output "primary_private_ip" {
description = "The private IP address of the NAT Gateway."
value = aws_nat_gateway.this.private_ip
}
output "secondary_private_ips" {
description = "The secondary private IP addresses of the NAT Gateway."
value = aws_nat_gateway.this.secondary_private_ip_addresses
}