Terraform Connector: Error - Primary key for stream: {xxx} is already pre-defined #40604
Unanswered
jduckwo
asked this question in
Connector Questions
Replies: 1 comment 1 reply
-
I experienced the same error a lot and it's pretty annoying. However, I found out that it becomes problematic when you change the order of the streams. It tries to apply the same config to the stream again, which is problematic. Only the new stream should appear in the apply. (Also, you have two streams with the same name here, but I think that's just due to the example, right?) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am doing a POC with Terraform. I have a connection from one Postgres database to another Postgres database. The connection has one stream in it. When I apply the stream via terraform the connection is created and I am able to run a job for it successfully. When I try to add a second stream to the config and apply the terraform, I get the following error:
We should be able to add new streams over time without having to destroy and reapply the config. Are we doing something wrong or is this in fact a bug with the Terraform provider? This is a pretty big deal and I am sure it is a blocker for many people if this feature doesn't work.
Initial Config: 1st
terraform apply
Adding Additional Stream: 2nd
terraform apply
Beta Was this translation helpful? Give feedback.
All reactions