Open pwmcintyre-shell opened 4 months ago
additionally, i have now deleted the subject and all its schema versions via the API ... and when asking Terraform to "destroy" it ... it complains that it is not there (HTTP 404)
you would think that if you ask Terraform to delete something that doesn't exists ... that would be a non-error!
│ Error: error reading Schema: error reading Schema "lsrc-pg9xny/example-value/latest": error loading the latest Schema: error loading the latest Schema: 404 Not Found: Subject 'example-value' not found.
For posterity, here's how I got around the issue ...
terraform state rm 'confluent_subject_config.subject'
terraform state rm 'confluent_schema.schema'
Thanks for creating this issue!
@pwmcintyre-shell could you try new attribute skip_validation_during_plan (you'll need to update your TF Provider to 1.79.0
) and set it to true
:
resource "confluent_schema" "schema" {
subject_name = confluent_subject_config.subject.subject_name
format = "JSON"
schema = var.schema != null ? var.schema : "{}"
skip_validation_during_plan = true
}
and see whether it helps? Thank you!
Hi team
I have a schema compatibility issue, where I need to publish an incompatible version.
To resolve this, I figure I would simply re-create the schema and the whole topic ...
But instead, on deleting a schema, it seems to validate it first ... which fails for the above reason!
Seeking advice, and wondering why is it validating on delete?
Error
Terraform