outputs.tf
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Outputs ======================================================================

output "id" {
  description = "TGW VPC attachment ID"
  value       = aws_ec2_transit_gateway_vpc_attachment.this.id
}

output "arn" {
  description = "TGW VPC attachment ARN"
  value       = aws_ec2_transit_gateway_vpc_attachment.this.arn
}

output "route_table_association_id" {
  description = "TGW route table association ID, null when using default route table"
  value       = length(aws_ec2_transit_gateway_route_table_association.this) > 0 ? aws_ec2_transit_gateway_route_table_association.this["assoc"].id : null
}