You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using this provider to create a timescale database for testing the saas product. Since we would like to use a private endpoint, I use the timescale_peering_connection resource to peer with our vpc.
If I place my aws_vpc_peering_connection_accepter directly next to the timescale_peering_connection I can directly use the provisioned_id as an input for the vpc_peering_connection_id
Here is some example code
resource"timescale_peering_connection""peering" {
peer_account_id=var.aws_account_idpeer_region_code=var.aws_regionpeer_vpc_id=var.vpc_idtimescale_vpc_id=timescale_vpcs.vpc.id
}
resource"aws_vpc_peering_connection_accepter""accepter_to_timescale" {
vpc_peering_connection_id=timescale_peering_connection.peering.provisioned_idauto_accept=trueaccepter {
allow_remote_vpc_dns_resolution=true
}
tags={
Name ="timescale/${timescale_vpcs.vpc.name}"
description ="Peer ${var.aws_account_id}/${var.vpc_id} to timescale/${timescale_vpcs.vpc.name} for project_id ${timescale_vpcs.vpc.project_id}"
side ="accepter"
}
}
However this is not working, as get following error that indicates, that the provisioned-id is null.
│ Error: Missing required argument
│
│ with aws_vpc_peering_connection_accepter.accepter_to_timescale,
│ on main.tf line 14, in resource "aws_vpc_peering_connection_accepter" "accepter_to_timescale":
│ 14: vpc_peering_connection_id = timescale_peering_connection.peering.provisioned_id
│
│ The argument "vpc_peering_connection_id" is required, but no definition was
│ found.
To proof that I directly pulled the state from terraform by executing terraform console
I would expect this to work, as the resource aws_vpc_peering_connection from aws to create a vpc peering between multiple vpcs is waiting until there is the pcx-.. available.
I've tried to update my code to add a delay, unfortunately that wasn't successful.
resource"timescale_peering_connection""peering" {
peer_account_id=var.aws_account_idpeer_region_code=var.aws_regionpeer_vpc_id=var.vpc_idtimescale_vpc_id=timescale_vpcs.vpc.id# We delay here the creation of the peering, as the provisioned_id is null until aws is ready# and unfortunatly the provisioner directly gives us this null object back without waiting for# aws to be ready. Otherwise we can't use this in aws_vpc_peering_connection_accepter object.provisioner"local-exec" {
command="sleep 90"
}
}
Hello @eddyfussel,
I encountered the same issue myself when developing it, and had some issues fixing it.
IIRC, the code handling the timescale peering connection doesn't surface the provisioned-id so I think it needs wider code change on our end I didn't have the opportunity to, so released that half way done.
I'm sorry for the inconvenience.
As for when this might be fixed, I think this provider will not see some love again until Q3/4.
Hi, I'm using this provider to create a timescale database for testing the saas product. Since we would like to use a private endpoint, I use the
timescale_peering_connection
resource to peer with our vpc.If I place my
aws_vpc_peering_connection_accepter
directly next to thetimescale_peering_connection
I can directly use theprovisioned_id
as an input for thevpc_peering_connection_id
Here is some example code
However this is not working, as get following error that indicates, that the
provisioned-id
is null.To proof that I directly pulled the state from terraform by executing
terraform console
Executing the
apply
again I get a change on the resource and the code starts working.I would expect this to work, as the resource
aws_vpc_peering_connection
from aws to create a vpc peering between multiple vpcs is waiting until there is thepcx-..
available.I've tried to update my code to add a delay, unfortunately that wasn't successful.
I also have here a log file to see the commands I've executed:
bug_timescale_provider_retracted.txt
Thanks in advance for any feedback, idea or help.
BR eddyfussel
The text was updated successfully, but these errors were encountered: