-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error reading Schema Registry Clusters when environment is created in the same step #452
Comments
Thanks for creating this issue @kaat-nnit!
It seems like a great idea, thanks for sharing it 👍
Just out of my curiosity, could you share more details on how you managed to defer it to the apply phase? |
Sure thing! |
@kaat-nnit, by the way, could you confirm that you have the following
|
@kaat-nnit did you get a chance to try out the following suggestion #452 (comment)? Thank you! |
@linouk23 thank you for the suggestion! We haven't had a chance to try it out yet, I will provide an update once we have. |
After upgrading to Terraform provider version 2.*.0 where schema registry cluster resource is removed, schema registry cluster data source read fails when read is deferred to the apply phase.
Terraform Confluent provider: 2.0.0 and higher
Terraform version: 1.9.7
Terraform setup:
¨
This works fine only in a setup where the environment already exists and we swapped the schema registry cluster resource for data source following the Confluent Provider 2.0.0: Upgrade Guide.
Issue is encountered when trying to deploy an environment and read the data source in the same plan/apply sequence. The same result is obtained both with an implicit dependency and when using the
depends_on
block.Plan output:
Expected behaviour:
Data source is read once the environment is created, and the apply step completes successfully.
Actual behaviour:
Apply step fails with error:
Error: error reading Schema Registry Clusters: there are no SR clusters in "env-***" environment
Workaround:
Introducing 5 seconds delay between environment creation and data source read with
time_sleep
resource results in a successful apply phase.Is it possible to introduce this delay in the data source itself such that using the time_sleep resource is not necessary for this setup to work?
The text was updated successfully, but these errors were encountered: