-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
65 lines (54 loc) · 2.14 KB
/
outputs.tf
File metadata and controls
65 lines (54 loc) · 2.14 KB
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
output "transit_gateway_id" {
description = "The ID of the Transit Gateway."
value = aws_ec2_transit_gateway.this.id
}
output "transit_gateway_arn" {
description = "The ARN of the Transit Gateway."
value = aws_ec2_transit_gateway.this.arn
}
output "transit_gateway_owner_id" {
description = "The AWS account ID of the Transit Gateway owner."
value = aws_ec2_transit_gateway.this.owner_id
}
output "transit_gateway_association_default_route_table_id" {
description = "The ID of the default association route table."
value = aws_ec2_transit_gateway.this.association_default_route_table_id
}
output "transit_gateway_propagation_default_route_table_id" {
description = "The ID of the default propagation route table."
value = aws_ec2_transit_gateway.this.propagation_default_route_table_id
}
output "vpc_attachment_ids" {
description = "Map of VPC attachment IDs keyed by the attachment name."
value = { for k, v in aws_ec2_transit_gateway_vpc_attachment.this : k => v.id }
}
output "vpc_attachment_details" {
description = "Map of VPC attachment details including ID, VPC ID, and subnet IDs."
value = {
for k, v in aws_ec2_transit_gateway_vpc_attachment.this : k => {
id = v.id
vpc_id = v.vpc_id
subnet_ids = v.subnet_ids
}
}
}
output "route_table_ids" {
description = "Map of custom route table IDs keyed by the route table name."
value = { for k, v in aws_ec2_transit_gateway_route_table.this : k => v.id }
}
output "ram_resource_share_id" {
description = "The ID of the RAM resource share."
value = length(var.ram_principals) > 0 ? aws_ram_resource_share.this[0].id : null
}
output "ram_resource_share_arn" {
description = "The ARN of the RAM resource share."
value = length(var.ram_principals) > 0 ? aws_ram_resource_share.this[0].arn : null
}
output "aws_region" {
description = "The AWS region where the Transit Gateway is deployed."
value = data.aws_region.current.name
}
output "aws_account_id" {
description = "The AWS account ID that owns the Transit Gateway."
value = data.aws_caller_identity.current.account_id
}