forked from allan-heap/terraform-aws-vpc-peering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
62 lines (50 loc) · 1.83 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
output "aws_vpc_peering_connection" {
value = aws_vpc_peering_connection.this
}
output "aws_vpc_peering_connection_accepter" {
value = aws_vpc_peering_connection_accepter.peer_accepter
}
output "vpc_peering_id" {
description = "Peering connection ID"
value = aws_vpc_peering_connection.this.id
}
output "vpc_peering_accept_status" {
description = "Accept status for the connection"
value = aws_vpc_peering_connection_accepter.peer_accepter.accept_status
}
output "peer_vpc_id" {
description = "The ID of the accepter VPC"
value = aws_vpc_peering_connection_accepter.peer_accepter.vpc_id
}
output "this_vpc_id" {
description = "The ID of the requester VPC"
value = aws_vpc_peering_connection_accepter.peer_accepter.peer_vpc_id
}
output "this_owner_id" {
description = "The AWS account ID of the owner of the requester VPC"
value = aws_vpc_peering_connection_accepter.peer_accepter.peer_owner_id
}
output "peer_owner_id" {
description = "The AWS account ID of the owner of the accepter VPC"
value = data.aws_caller_identity.peer.account_id
}
output "peer_region" {
description = "The region of the accepter VPC"
value = aws_vpc_peering_connection_accepter.peer_accepter.peer_region
}
output "accepter_options" {
description = "VPC Peering Connection options set for the accepter VPC"
value = aws_vpc_peering_connection_accepter.peer_accepter.accepter
}
output "requester_options" {
description = "VPC Peering Connection options set for the requester VPC"
value = aws_vpc_peering_connection_accepter.peer_accepter.requester
}
output "requester_routes" {
description = "Routes from the requester VPC"
value = tolist(aws_route.this_routes.*)
}
output "accepter_routes" {
description = "Routes to the accepter VPC"
value = tolist(aws_route.peer_routes.*)
}