Skip to content

Commit 0f917b6

Browse files
shemauSteve Peggs
andauthored
feat: add support for Madrid (eu-es) region (#636)
Co-authored-by: Steve Peggs <[email protected]>
1 parent 83c64df commit 0f917b6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

atracker.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
##############################################################################
2-
# Activity Tracker is only supported in the following regions, resources
3-
# will only be provisioned where supported
2+
# Activity Tracker Event Routing is only supported in the following regions,
3+
# resources will only be provisioned where supported
4+
# https://cloud.ibm.com/docs/atracker?topic=atracker-regions#regions-atracker
45
##############################################################################
56

67
locals {
78
valid_atracker_region = contains(
8-
["us-south", "us-east", "eu-de", "eu-gb", "au-syd"],
9+
["us-south", "us-east", "eu-de", "eu-es", "eu-gb", "au-syd"],
910
var.region
1011
)
1112
}

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ variable "cos" {
621621

622622
# https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/cos_bucket#region_location
623623
validation {
624-
error_message = "All regional buckets must specify `au-syd`, `eu-de`, `eu-gb`, `jp-tok`, `us-east`, `us-south`, `ca-tor`, `jp-osa`, `br-sao`."
624+
error_message = "All regional buckets must specify `au-syd`, `eu-de`, `eu-es`, `eu-gb`, `jp-tok`, `us-east`, `us-south`, `ca-tor`, `jp-osa`, `br-sao`."
625625
condition = length(
626626
[
627627
for site_bucket in flatten(
@@ -632,7 +632,7 @@ variable "cos" {
632632
bucket if lookup(bucket, "region_location", null) != null
633633
]
634634
]
635-
) : site_bucket if !contains(["au-syd", "eu-de", "eu-gb", "jp-tok", "us-east", "us-south", "ca-tor", "jp-osa", "br-sao"], site_bucket.region_location)
635+
) : site_bucket if !contains(["au-syd", "eu-de", "eu-es", "eu-gb", "jp-tok", "us-east", "us-south", "ca-tor", "jp-osa", "br-sao"], site_bucket.region_location)
636636
]
637637
) == 0
638638
}

0 commit comments

Comments
 (0)