I'm getting an error trying to import an AWS Route...
# aws
g
I'm getting an error trying to import an AWS RouteTable
Copy code
# Route tables
opts.import_ = "rtb-a7a13cce"
route_table_args = [
    RouteTableRouteArgs(
        cidr_block="0.0.0.0/0",
        gateway_id=igw_a2a13ccb.id,
        instance_id=inst_805db614.id,
        network_interface_id="eni-8e4a7cc2",
        egress_only_gateway_id="",
        ipv6_cidr_block="",
        local_gateway_id="",
        nat_gateway_id="",
        transit_gateway_id="",
        vpc_peering_connection_id="",
    )
]

rtb_a7a13cce = aws.ec2.RouteTable(
    resource_name="rtb-a7a13cce",
    vpc_id=vpc_a5a13ccc.id,
    routes=route_table_args,
    propagating_vgws=[vgw_0dc6bd0a91af1ae21.id],
    opts=opts
)
the "diff" is resulting in :
the thing that is confusing is that the
~
diff , the text is same on the left and right . So I'm not able to figure out what I have to change? Any feedback would be helpful !!
b
Can you try remove the gateway id? It looks like that’s being added where it doesn’t exist on the current route
g
AH, I see that is how I'm supposed to read it !! 🤦‍♂️ .. Thanks a lot @billowy-army-68599 👍 !!