我试图获取隐式关联(在子网和route_表之间),但根据本文档 api describe route tables ,似乎只返回显式关联。是否有其他方法查询和获取此信息。 对于给定的子网id,我也需要显式和隐式关联。 到目前为止,我一直在使用 boto3.resource() 和 boto3.client()
boto3.resource()
boto3.client()
我发现,如果没有显式的路由关联,它将隐式地使用主路由。因此,对于这种情况: [vpc]->[route table]->[igw|natgw]
[vpc]->[route table]->[igw|natgw]
看见 EC2.Client.describe_route_tables