# 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
}
