Open ttrine opened 1 month ago
Thank you for report this, I'll look into it soon.
I think that's because the database (defined in TF) information schema does not return the comments as defined and returned from your local dev-database. You can simply remove these comments from the schema.hcl
and re-run this.
Thanks for your suggestion @a8m. I did try that, but for some reason it yields the same Terraform plan I gave above after several applications of terraform apply
.
@giautm thank you. Please let me know if you need more detail to reproduce this - I'm not sure which extra information is relevant.
Atlas itself detects no changes:
with the dev env configured as
But Terraform gives the following plan repeatedly on apply:
I happen to be using GCP's AlloyDB which is essentially a managed PostgreSQL instance with some added Google-proprietary extensions. The Terraform configuration gives Atlas a separate database (on the same instance) to use as a dev database.
The dev database is empty except for the public schema.
It's possible this is user error but I haven't seen any references to this issue online or been able to track down the cause myself.