timescale / terraform-provider-timescale

Timescale Cloud Terraform Provider
Apache License 2.0
18 stars 2 forks source link

v1.9: Unable to Read Vpcs - Cannot query field "provisionedId" on type "PeeringConnection" #175

Closed asibs closed 3 months ago

asibs commented 3 months ago

When upgrading to v1.9.0 we get the following error:

Error: Unable to Read Vpcs

(trace details)

Cannot query field "provisionedId" on type "PeeringConnection".

This happens on the following lines:

data "timescale_vpcs" "all_ts_vpcs" {
}

Our timescale account has a single VPC which has already been peered with an AWS VPC. This was setup months ago, and our terraform code has been working fine until we upgraded to v1.9.0 of the Timescale provider.

When we revert to v1.8.0, the error goes away.

I assume it is to do with this PR? https://github.com/timescale/terraform-provider-timescale/pull/174

Khyme commented 3 months ago

Hello, The VPC get queries being shared by data and resources, its provisioned_id element, introduced in 1.9.0 for resources, must also be mapped in the data sources. I added this in v1.9.1 and tested it with success, can you confirm?