fixed route table associations (#4325)

This commit is contained in:
Macwan Nevil 2021-09-23 02:26:56 +05:30 committed by GitHub
parent 65dd0f1660
commit 3e20703106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -258,7 +258,12 @@ DESCRIBE_ROUTE_TABLES_RESPONSE = """
<routeTableAssociationId>{{ association_id }}</routeTableAssociationId>
<routeTableId>{{ route_table.id }}</routeTableId>
<main>true</main>
{% if subnet_id.startswith("igw") %}
<gatewayId>{{ subnet_id }}</gatewayId>
{% endif %}
{% if subnet_id.startswith("subnet") %}
<subnetId>{{ subnet_id }}</subnetId>
{% endif %}
<associationState>
<state>associated</state>
</associationState>

View File

@ -108,4 +108,5 @@ TestAccAWSVpnGatewayAttachment
TestAccAWSEc2CarrierGateway
TestAccDataSourceAwsNetworkInterface_
TestAccAWSNatGateway
TestAccAWSRouteTable_
TestAccAWSRouteTable_
TestAccAWSRouteTableAssociation_