This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Description We are using the v35.0.0 of the apigee module. We have created the organization without properties.
module "apigee" {
source = "github.com/terraform-google-modules/cloud-foundation-fabric//modules/apigee?ref=v35.0.0"
project_id = var.project_id
organization = {
display_name = var.org_display_name
description = var.org_description
runtime_type = "CLOUD"
billing_type = var.billing_type
database_encryption_key = module.kms-org-db.key_ids["org-db"]
analytics_region = var.ax_region
disable_vpc_peering = var.disable_vpc_peering
api_consumer_data_location = "europe-west4"
}
envgroups = local.envgroups
environments = var.apigee_environments
instances = local.instances
}
On trying to run again Terraform tries to recreate the entire organization because it has two new properties namely:
"features.hybrid.enabled"
"features.mart.connect.enabled"
I've tried to set them to match as follows:
module "apigee" {
source = "github.com/terraform-google-modules/cloud-foundation-fabric//modules/apigee?ref=v35.0.0"
project_id = var.project_id
organization = {
display_name = var.org_display_name
description = var.org_description
runtime_type = "CLOUD"
billing_type = var.billing_type
database_encryption_key = module.kms-org-db.key_ids["org-db"]
analytics_region = var.ax_region
disable_vpc_peering = var.disable_vpc_peering
api_consumer_data_location = "europe-west4"
properties = {
"features.hybrid.enabled" = "true"
"features.mart.connect.enabled" = "true"
}
}
envgroups = local.envgroups
environments = var.apigee_environments
instances = local.instances
}
But even that isn't matched. See part of the trace below.
# module.apigee-x-core.module.apigee.google_apigee_organization.organization[0] must be replaced
-/+ resource "google_apigee_organization" "organization" {
+ api_consumer_data_location = "europe-west4" # forces replacement
~ apigee_project_id = "la939134d21e1f95cp-tp" -> (known after apply)
~ ca_certificate = "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURQekNDQWllZ0F3SUJBZ0lRYTNJT1dMZXlHRzFUZmlzeXVVU3ZWVEFOQmdrcWhraUc5dzBCQVFzRkFEQXYKTVMwd0t3WURWUVFERXlRNVptUm1NREZsTUMxalkyRXpMVFJsTkdFdFlUYzJOUzFsTVRBeU1HRmpNbVk0TVRBdwpIaGNOTWpReE1USXhNRGN6TURJeldoY05NelF4T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hsK05tL1p2QXd1SjdZQUlrdUNHREQ1CklGU2R3cElEeW41akNVaVJISENEZGhxbnd3NDlsd2RVb0VNbGNqem02ZHZwYmFtb2hJNWMvaFU2UXMxU0lDRksKMGxycmhvSm83SjJ0a0N2Q3V5dzl0MHVXZ1BFb2MyMllXblMybVdDc0tSNk5KS1R0bnRsbHBFNnpvUGpsbUYragpCN2NsZEZhL0FGTXNJdEUxRlNFMkpGdEtKdz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K" -> (known after apply)
~ id = "organizations/lhg-eu-w0p-mmg-api01" -> (known after apply)
~ name = "lhg-eu-w0p-mmg-api01" -> (known after apply)
~ subscription_type = "PAID" -> (known after apply)
# (7 unchanged attributes hidden)
~ properties {
~ property {
~ name = "features.hybrid.enabled" -> "0"
- value = "true" -> null
}
~ property {
~ name = "features.mart.connect.enabled" -> "0"
- value = "true" -> null
}
}
}
So I see two problems, some default properties are created and we have no way to setting the properties to match afterwards.
Reactions are currently unavailable
We are using the v35.0.0 of the apigee module. We have created the organization without properties.
On trying to run again Terraform tries to recreate the entire organization because it has two new properties namely:
I've tried to set them to match as follows:
But even that isn't matched. See part of the trace below.
So I see two problems, some default properties are created and we have no way to setting the properties to match afterwards.