hey folks! :wave: I’m trying to import an existin...
# aws
hey folks! 👋 I’m trying to import an existing
, however I can’t seem to figure the “ID” to feed into the
property. For all other types of resources, the ID is always pretty obvious to figure, but routes don’t seem to have an existence of their own outside the route table, they don’t seem to have an ARN, etc… So how could I import them? 🤔
I just looked into our current Terraform state and found that routes do have IDs, they just don’t seem to be exposed in the AWS console. For instance, for some route table
, the ID of the routes is of the form
wow, it required a lot of investigations, analysis and deduction, but I’ve finally mapped out all our routes IDs out of the Terraform state… 😅
actually, the expected ID format for routes is
The expected ID for every resource is listed at the bottom of the resource's documentation. Vis.: https://www.pulumi.com/docs/reference/pkg/aws/ec2/route/#import