-
-
Notifications
You must be signed in to change notification settings - Fork 227
/
outputs.tf
100 lines (80 loc) · 4.2 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
################################################################################
# Transit Gateway
################################################################################
output "ec2_transit_gateway_arn" {
description = "EC2 Transit Gateway Amazon Resource Name (ARN)"
value = try(aws_ec2_transit_gateway.this[0].arn, "")
}
output "ec2_transit_gateway_id" {
description = "EC2 Transit Gateway identifier"
value = try(aws_ec2_transit_gateway.this[0].id, "")
}
output "ec2_transit_gateway_owner_id" {
description = "Identifier of the AWS account that owns the EC2 Transit Gateway"
value = try(aws_ec2_transit_gateway.this[0].owner_id, "")
}
output "ec2_transit_gateway_association_default_route_table_id" {
description = "Identifier of the default association route table"
value = try(aws_ec2_transit_gateway.this[0].association_default_route_table_id, "")
}
output "ec2_transit_gateway_propagation_default_route_table_id" {
description = "Identifier of the default propagation route table"
value = try(aws_ec2_transit_gateway.this[0].propagation_default_route_table_id, "")
}
################################################################################
# VPC Attachment
################################################################################
output "ec2_transit_gateway_vpc_attachment_ids" {
description = "List of EC2 Transit Gateway VPC Attachment identifiers"
value = [for k, v in aws_ec2_transit_gateway_vpc_attachment.this : v.id]
}
output "ec2_transit_gateway_vpc_attachment" {
description = "Map of EC2 Transit Gateway VPC Attachment attributes"
value = aws_ec2_transit_gateway_vpc_attachment.this
}
################################################################################
# Route Table / Routes
################################################################################
output "ec2_transit_gateway_route_table_id" {
description = "EC2 Transit Gateway Route Table identifier"
value = try(aws_ec2_transit_gateway_route_table.this[0].id, "")
}
output "ec2_transit_gateway_route_table_default_association_route_table" {
description = "Boolean whether this is the default association route table for the EC2 Transit Gateway"
value = try(aws_ec2_transit_gateway_route_table.this[0].default_association_route_table, "")
}
output "ec2_transit_gateway_route_table_default_propagation_route_table" {
description = "Boolean whether this is the default propagation route table for the EC2 Transit Gateway"
value = try(aws_ec2_transit_gateway_route_table.this[0].default_propagation_route_table, "")
}
output "ec2_transit_gateway_route_ids" {
description = "List of EC2 Transit Gateway Route Table identifier combined with destination"
value = aws_ec2_transit_gateway_route.this[*].id
}
output "ec2_transit_gateway_route_table_association_ids" {
description = "List of EC2 Transit Gateway Route Table Association identifiers"
value = [for k, v in aws_ec2_transit_gateway_route_table_association.this : v.id]
}
output "ec2_transit_gateway_route_table_association" {
description = "Map of EC2 Transit Gateway Route Table Association attributes"
value = aws_ec2_transit_gateway_route_table_association.this
}
output "ec2_transit_gateway_route_table_propagation_ids" {
description = "List of EC2 Transit Gateway Route Table Propagation identifiers"
value = [for k, v in aws_ec2_transit_gateway_route_table_propagation.this : v.id]
}
output "ec2_transit_gateway_route_table_propagation" {
description = "Map of EC2 Transit Gateway Route Table Propagation attributes"
value = aws_ec2_transit_gateway_route_table_propagation.this
}
################################################################################
# Resource Access Manager
################################################################################
output "ram_resource_share_id" {
description = "The Amazon Resource Name (ARN) of the resource share"
value = try(aws_ram_resource_share.this[0].id, "")
}
output "ram_principal_association_id" {
description = "The Amazon Resource Name (ARN) of the Resource Share and the principal, separated by a comma"
value = try(aws_ram_principal_association.this[0].id, "")
}