dears.
how to specify name tag for transit gateway’s default routing table ?
data "aws_ec2_transit_gateway_route_table" "default" {
filter {
name = "default-association-route-table"
values = ["true"]
}
filter {
name = "transit-gateway-id"
values = [local.transit-gateway-id]
}
}
resource "aws_ec2_transit_gateway_route_table" "default" {
# it doesn't work.
# route_table_id = data.aws_ec2_tansit_gateway_route_table.default.id
# transit_gateway_id should create non-default another route table.
tags = {
Name = "my-route-table-name"
}
}