generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
26 lines (23 loc) · 1.25 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
##############################################################################
# Common variables
##############################################################################
variable "container_registry_endpoint" {
description = "The endpoint of the ICR region, eg. `us.icr.io` or `de.icr.io`, to change to standard plan"
type = string
default = "us.icr.io"
validation {
condition = can(regex("^(private.)?([a-z]{2}[2]?.)?icr.io$", var.container_registry_endpoint))
error_message = "registry endpoint must match the regular expression \"^(private.)?([a-z]{2}[2]?.)?icr.io$\", see https://cloud.ibm.com/docs/Registry?topic=Registry-registry_overview#registry_regions_global"
}
}
# ap-north jp.icr.io private.jp.icr.io
# ap-south au.icr.io private.au.icr.io
# br-sao br.icr.io private.br.icr.io
# ca-tor ca.icr.io private.ca.icr.io
# eu-central de.icr.io private.de.icr.io
# jp-osa jp2.icr.io private.jp2.icr.io
# uk-south uk.icr.io private.uk.icr.io
# us-south us.icr.io private.us.icr.io
# global icr.io private.icr.io
# pattern match (possilby "private.") (possibly two letters, a number 2 and a period) "icr.io" with no prefix or suffix
# This avoids very specific checks and allows for new regions to be added without updating the module.