2021-08-05 02:57:22 -07:00
/ * *
2022-01-01 06:52:31 -08:00
* Copyright 2022 Google LLC
2021-08-05 02:57:22 -07:00
*
* Licensed under the Apache License , Version 2 . 0 ( the " License " ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
*
* http : //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing , software
* distributed under the License is distributed on an " AS IS " BASIS ,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied .
* See the License for the specific language governing permissions and
* limitations under the License .
* /
2021-08-04 08:09:44 -07:00
2021-08-05 02:57:22 -07:00
variable " apigee_envgroups " {
description = " Apigee Environment Groups. "
type = map ( object ( {
environments = list ( string )
hostnames = list ( string )
} ) )
default = { }
2021-08-04 08:09:44 -07:00
}
variable " apigee_environments " {
description = " Apigee Environment Names. "
2021-08-05 02:57:22 -07:00
type = list ( string )
default = [ ]
}
variable " apigee_org_id " {
2022-01-31 01:45:34 -08:00
description = " Apigee Organization ID. "
2021-08-05 02:57:22 -07:00
type = string
2021-08-04 08:09:44 -07:00
}
2022-02-02 10:32:26 -08:00
variable " ip_range " {
description = " Customer-provided CIDR block of length 22 for the Apigee instance. "
type = string
2021-08-05 02:57:22 -07:00
validation {
2022-02-02 10:32:26 -08:00
condition = try ( cidrnetmask ( var . ip_range ) , null ) = = " 255.255.252.0 "
error_message = " Invalid CIDR block provided; Allowed pattern for ip_range: X.X.X.X/22. "
2021-08-04 08:09:44 -07:00
}
}
2021-08-05 04:21:57 -07:00
variable " disk_encryption_key " {
2021-08-05 06:53:44 -07:00
description = " Customer Managed Encryption Key (CMEK) self link (e.g. `projects/foo/locations/us/keyRings/bar/cryptoKeys/baz`) used for disk and volume encryption (required for PAID Apigee Orgs only). "
2021-08-05 04:21:57 -07:00
type = string
default = null
}
2021-08-05 02:57:22 -07:00
variable " name " {
description = " Apigee instance name. "
type = string
}
2021-08-04 08:09:44 -07:00
variable " region " {
description = " Compute region. "
type = string
}