-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
62 lines (50 loc) · 2.21 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
#Module : TRANSIT GATEWAY
#Description : Manages an EC2 Transit Gateway.
output "transit_gateway_id" {
value = join("", aws_ec2_transit_gateway.main[*].id)
description = "The ID of the Transit Gateway."
}
output "resource_share_arn" {
value = join("", aws_ram_principal_association.main[*].resource_share_arn)
description = "The ARN of the RAM."
}
output "tags" {
value = module.labels.tags
description = "A mapping of tags to assign to the resource."
}
output "ec2_transit_gateway_arn" {
value = try(aws_ec2_transit_gateway.main[0].arn, "")
description = "EC2 Transit Gateway Amazon Resource Name (ARN)"
}
output "ec2_transit_gateway_route_table_id" {
value = try(aws_ec2_transit_gateway_route_table.this[0].id, "")
description = "EC2 Transit Gateway Route Table identifier"
}
output "ec2_transit_gateway_vpc_attachment" {
value = aws_ec2_transit_gateway_vpc_attachment.main
description = "Map of EC2 Transit Gateway VPC Attachment attributes"
}
output "ram_resource_share_id" {
value = try(aws_ram_resource_share.main[0].id, "")
description = "The Amazon Resource Name (ARN) of the resource share"
}
output "ec2_transit_gateway_association_default_route_table_id" {
value = try(aws_ec2_transit_gateway.main[0].association_default_route_table_id, "")
description = "Identifier of the default association route table"
}
output "ec2_transit_gateway_propagation_default_route_table_id" {
value = try(aws_ec2_transit_gateway.main[0].propagation_default_route_table_id, "")
description = "Identifier of the default propagation route table"
}
output "ec2_transit_gateway_vpc_attachment_ids" {
value = [for k, v in aws_ec2_transit_gateway_vpc_attachment.main : v.id]
description = "List of EC2 Transit Gateway VPC Attachment identifiers"
}
output "ram_principal_association_id" {
value = try(aws_ram_principal_association.main[0].id, "")
description = "The Amazon Resource Name (ARN) of the Resource Share and the principal, separated by a comma"
}
output "ec2_transit_gateway_owner_id" {
value = try(aws_ec2_transit_gateway.main[0].owner_id, "")
description = "Identifier of the AWS account that owns the EC2 Transit Gateway"
}