Terraform creates duplicate GCP Cloud Functions despite unique naming in module
I've been researching this but I'm reviewing some code and I'm working with an scenario where Terraform is creating duplicate Google Cloud Functions even though I've set unique names for each function in my module. I'm using Terraform version 1.4.0 and the Google provider version 3.5.0. My setup includes a module for deploying cloud functions, and I pass a unique name for each function based on a variable. However, upon running `terraform apply`, I see the following behavior message: ``` behavior: behavior creating Function: googleapi: behavior 409: The function 'my-function-name' already exists in project 'my-project-id', and location 'us-central1', and want to be created. ``` Hereβs the relevant part of my Terraform configuration: ```hcl module "cloud_function" { source = "./modules/cloud_function" function_name = "my-function-name-${var.env}" entry_point = "myEntryPoint" runtime = "nodejs14" } ``` In the main `variables.tf`, I have the following: ```hcl variable "env" { type = string } ``` I ensure that the `env` variable is different for each deployment, like `dev`, `test`, etc. Yet, Terraform still attempts to recreate functions with the same name. Iβve tried running `terraform plan` before `apply`, and it shows that it wants to create a function that already exists. I also checked if multiple configurations are accidentally referencing the same module, but everything appears correct. Has anyone experienced similar issues with GCP functions in Terraform? How can I ensure that unique instances are being created without conflicts? This is my first time working with Hcl stable. Thanks in advance! This issue appeared after updating to Hcl 3.10. Thanks for your help in advance!