hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.28k stars 1.72k forks source link

Issue with edition attribute #18186

Open praveentelus opened 3 months ago

praveentelus commented 3 months ago

Question

I am creating an cloud sql instance and while writing a terraform script, I have mentioned edition = "ENTERPRISE_PLUS" under the setting attribute, but while doing plan, I am getting the error that this field is not supported at this place whereas, I can see in the document of this google_sql_database_instance resource, it's mentioned there.

praveentelus commented 3 months ago

Error :

│ Error: Unsupported argument │ │ on ../modules/cloud-sql/main.tf line 27, in resource "google_sql_database_instance" "cloud_sql_instance": │ 27: edition = "ENTERPRISE_PLUS" │ │ An argument named "edition" is not expected here.

Sanjoy1995 commented 3 months ago

@praveentelus I'm using provider version 5.31.1 . It's working fine.

I was also facing this issue with provider version 4.66.0 .

Please upgrade your version & test it.