Hello again, I'm trying to import some aws routes ...
# general
p
Hello again, I'm trying to import some aws routes into Pulumi. I'm using a command like
pulumi import aws:ec2/route:Route mon2bdefa rtb-0173c706be3_10.3.0.0/16
But it results in:
Copy code
Previewing import (infra-top):
     Type                 Name             Plan       Info
     pulumi:pulumi:Stack  infra-infra-top             1 error
 =   └─ aws:ec2:Route     mon2bdefa        import     11 errors

Diagnostics:
  pulumi:pulumi:Stack (infra-infra-top):
    error: preview failed

  aws:ec2:Route (mon2bdefa):
    error: aws:ec2/route:Route resource 'mon2bdefa' has a problem: Invalid combination of arguments: "egress_only_gateway_id": one of `carrier_gateway_id,egress_only_gateway_id,gateway_id,instance_id,local_gateway_id,nat_gateway_id,network_interface_id,transit_gateway_id,vpc_endpoint_id,vpc_peering_connection_id` must be specified. Examine values at 'Route.EgressOnlyGatewayId'.
    error: aws:ec2/route:Route resource 'mon2bdefa' has a problem: Invalid combination of arguments: "gateway_id": one of `carrier_gateway_id,egress_only_gateway_id,gateway_id,instance_id,local_gateway_id,nat_gateway_id,network_interface_id,transit_gateway_id,vpc_endpoint_id,vpc_peering_connection_id` must be specified. Examine values at 'Route.GatewayId'.
    error: aws:ec2/route:Route resource 'mon2bdefa' has a problem: Invalid combination of arguments: "vpc_endpoint_id": one of `carrier_gateway_id,egress_only_gateway_id,gateway_id,instance_id,local_gateway_id,nat_gateway_id,network_interface_id,transit_gateway_id,vpc_endpoint_id,vpc_peering_connection_id` must be specified. Examine values at 'Route.VpcEndpointId'.
    error: aws:ec2/route:Route resource 'mon2bdefa' has a problem: Invalid combination of arguments: "vpc_peering_connection_id": one of `carrier_gateway_id,egress_only_gateway_id,gateway_id,instance_id,local_gateway_id,nat_gateway_id,network_interface_id,transit_gateway_id,vpc_endpoint_id,vpc_peering_connection_id` must be specified. Examine values at 'Route.VpcPeeringConnectionId'.
    error: aws:ec2/route:Route resource 'mon2bdefa' has a problem: Invalid combination of arguments: "carrier_gateway_id": one of `carrier_gateway_id,egress_only_gateway_id,gateway_id,instance_id,local_gateway_id,nat_gateway_id,network_interface_id,transit_gateway_id,vpc_endpoint_id,vpc_peering_connection_id` must be specified. Examine values at 'Route.CarrierGatewayId'.
    error: aws:ec2/route:Route resource 'mon2bdefa' has a problem: Invalid combination of arguments: "local_gateway_id": one of `carrier_gateway_id,egress_only_gateway_id,gateway_id,instance_id,local_gateway_id,nat_gateway_id,network_interface_id,transit_gateway_id,vpc_endpoint_id,vpc_peering_connection_id` must be specified. Examine values at 'Route.LocalGatewayId'.
    error: aws:ec2/route:Route resource 'mon2bdefa' has a problem: Invalid combination of arguments: "nat_gateway_id": one of `carrier_gateway_id,egress_only_gateway_id,gateway_id,instance_id,local_gateway_id,nat_gateway_id,network_interface_id,transit_gateway_id,vpc_endpoint_id,vpc_peering_connection_id` must be specified. Examine values at 'Route.NatGatewayId'.
    error: aws:ec2/route:Route resource 'mon2bdefa' has a problem: Invalid combination of arguments: "network_interface_id": one of `carrier_gateway_id,egress_only_gateway_id,gateway_id,instance_id,local_gateway_id,nat_gateway_id,network_interface_id,transit_gateway_id,vpc_endpoint_id,vpc_peering_connection_id` must be specified. Examine values at 'Route.NetworkInterfaceId'.
    error: aws:ec2/route:Route resource 'mon2bdefa' has a problem: Invalid combination of arguments: "transit_gateway_id": one of `carrier_gateway_id,egress_only_gateway_id,gateway_id,instance_id,local_gateway_id,nat_gateway_id,network_interface_id,transit_gateway_id,vpc_endpoint_id,vpc_peering_connection_id` must be specified. Examine values at 'Route.TransitGatewayId'.
    error: aws:ec2/route:Route resource 'mon2bdefa' has a problem: Invalid combination of arguments: "instance_id": one of `carrier_gateway_id,egress_only_gateway_id,gateway_id,instance_id,local_gateway_id,nat_gateway_id,network_interface_id,transit_gateway_id,vpc_endpoint_id,vpc_peering_connection_id` must be specified. Examine values at 'Route.InstanceId'.
    error: Preview failed: one or more inputs failed to validate
Browsing google for the error leads me to a number of threads talking about legacy Terraform v0.12 such as https://stackoverflow.com/questions/69760888/terraform-inappropriate-value-for-attribute-route Is this a bug? Should I report it to the aws Classic package maintainers on their github or am I doing something wrong?