terraform-provider-postgresql
terraform-provider-postgresql copied to clipboard
Changing the name of the schema resource leads to an error produced by cdktf
Terraform Version
cdktf 0.6.3 Terraform v1.0.5 on darwin_amd64
Your version of Terraform is out of date! The latest version is 1.0.7. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
- postgresql_schema
Terraform Configuration Files
"postgresql_schema": {
"postgre-schema-w11": {
"drop_cascade": true,
"name": "mlflow_w11",
"//": {
"metadata": {
"path": "infra/postgre-schema-w11",
"uniqueId": "postgre-schema-w11"
}
}
}
},
Debug Output
https://gist.github.com/nadworny/cb5732324bbc9779ed12a0f6e42705d0
Expected Behavior
Resource is destroyed and created with a new resource name.
Actual Behavior
Error as in gist. This problem doesn't occur if I change the name using hcl / .tf format. Error suggests it's a problem with the provider but I'm happy to create a bug in the cdktf repo. Applying the changes again works without problem.
Steps to Reproduce
-
cdktf deploy
- Change the name of the resource i.e. from
"postgre-schema-w11"
to"postgre-schema-w111"
-
cdktf deploy
ortf apply