Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
integer_maxval
Explorer

Missing eu-central-1 in CloudGuard AMI RegionMap JSON/YAML template (Date: 20260616)

https://cgi-cfts.s3.amazonaws.com/utils/amis.yaml is missing eu-central-1

locals {
amis_yaml_regionMap = yamldecode(split("Resources", data.http.amis_yaml_http.response_body)[0]).Mappings.RegionMap
amis_yaml_converterMap = yamldecode(split("Resources", data.http.amis_yaml_http.response_body)[0]).Mappings.ConverterMap


// Variables example:
// version_license = "R81.10-PAYG-NGTX"
// RESULT:
// version_license_key = "R81.10-PAYG-NGTX-GW"

// version_license_value = "R8110PAYGNGTXGW"

version_license_key_mgmt_gw = format("%s%s", var.version_license, var.chkp_type == "gateway" ? "-GW" : var.chkp_type == "management" ? "-MGMT" : var.chkp_type == "mds" ? "-MGMT" : "")
version_license_key = var.chkp_type == "standalone" ? format("%s%s", var.version_license, element(split("-", var.version_license), 1) == "BYOL" ? "-MGMT" : "") : local.version_license_key_mgmt_gw

version_license_value = local.amis_yaml_converterMap[local.version_license_key]["Value"]

// Variables example:
// region = "us-east-1"
// version_license_key - see above
// RESULT: local.ami_id = "ami-1234567"
ami_id = local.amis_yaml_regionMap[local.region][local.version_license_value]
}


and throws an error
 

 

0 Kudos
1 Reply
arture2026
Employee
Employee

Repository was updated yesterday with some missing regions, please try again. It should be ok now.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events