apigee / terraform-modules

Terraform modules and ready to use end-to-end examples for Apigee.
Apache License 2.0
52 stars 57 forks source link

Running variables.tf gives below error. please help #100

Closed URBPG closed 11 months ago

URBPG commented 1 year ago

Below is the apigee_instances code and running it gives below error:

from variables.tf:

variable "apigee_instances" { description = "Apigee Instances (only one instance for EVAL)." type = map(object({ region = string ip_range = string environments = list(string) })) default = { region = "us-central1" ip_range = "10.x.x.x/24" environments = [ "terraform-env1" ] } }

error:

Error: Invalid default value for variable │ │ on variables.tf line 86, in variable "apigee_instances": │ 86: default = { │ 87: region = "us-central1" │ 88: ip_range = "10.x.x.x/24" │ 89: environments = [ "terraform-env1" ] │ 90: } │ │ This default value is not compatible with the variable's type constraint: element "region": object required. ╵

g-greatdevaks commented 1 year ago

@URBPG Can you please provide details on the module where you encountered this issue?