terraform-provider-timescale icon indicating copy to clipboard operation
terraform-provider-timescale copied to clipboard

Bug: timescale_peering_connection cannot be imported

Open mattk-ce opened this issue 8 months ago • 2 comments

Docs say "Import can be done with timescale_vpc_id,peer_account_id,peer_region_code,peer_vpc_id format", but it does not work.

With the following import block (real IDs replaced by same-length and format random IDs):

import {
  to = timescale_peering_connection.pc
  id = "vpc-12345677890123450,123456789012,us-east-1,vpc-98765432109876543"
}

I receive

| Error: Parse Error | │ could not parse peering connection ID

In looking at the code, based on this line, it seems that it might be expecting the first parameter to actually be an integer. But even if it managed to parse that, it doesn't seem to ever do anything with it other than output diagnostics. Is it safe to say importing this rather critical resource is non-functional?

mattk-ce avatar Jun 12 '24 19:06 mattk-ce