Skip to content

Commit 3f1d8e6

Browse files
shemauSteve Peggs
andauthored
fix: support 8.12 (#177)
* fix: add support 8.12 * fix: remove support for 8.7 --------- Co-authored-by: Steve Peggs <[email protected]>
1 parent 38d5aa4 commit 3f1d8e6

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ You need the following permissions to run this module.
9090
| <a name="input_backup_crn"></a> [backup\_crn](#input\_backup\_crn) | The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty. | `string` | `null` | no |
9191
| <a name="input_backup_encryption_key_crn"></a> [backup\_encryption\_key\_crn](#input\_backup\_encryption\_key\_crn) | The CRN of a Key Protect key, that you want to use for encrypting disk that holds deployment backups. Only used if var.kms\_encryption\_enabled is set to true. If no value is passed here, the value passed for the 'kms\_key\_crn' variable is used, unless 'use\_default\_backup\_encryption\_key' is set to 'true'. BYOK for backups is available only in US regions us-south and us-east, and eu-de. Only keys in the us-south and eu-de are durable to region failures. To ensure that your backups are available even if a region failure occurs, you must use a key from us-south or eu-de. Take note that Hyper Protect Crypto Services for IBM Cloud® Databases backups is not currently supported, so if no value is passed here, but a HPCS value is passed for var.kms\_key\_crn, databases backup encryption will use the default encryption keys. | `string` | `null` | no |
9292
| <a name="input_cbr_rules"></a> [cbr\_rules](#input\_cbr\_rules) | (Optional, list) List of CBR rules to create | <pre>list(object({<br> description = string<br> account_id = string<br> rule_contexts = list(object({<br> attributes = optional(list(object({<br> name = string<br> value = string<br> }))) }))<br> enforcement_mode = string<br> }))</pre> | `[]` | no |
93-
| <a name="input_elasticsearch_version"></a> [elasticsearch\_version](#input\_elasticsearch\_version) | Version of Elasticsearch to deploy, must be 8.7 or 8.10 (Enterprise plan only or Platinum if 8.10 or above). If no value passed, the current ICD preferred version is used. | `string` | `null` | no |
93+
| <a name="input_elasticsearch_version"></a> [elasticsearch\_version](#input\_elasticsearch\_version) | Version of Elasticsearch to deploy, must be 8.10 or 8.12 (Enterprise plan only or Platinum if 8.10 or above). If no value passed, the current ICD preferred version is used. | `string` | `null` | no |
9494
| <a name="input_existing_kms_instance_guid"></a> [existing\_kms\_instance\_guid](#input\_existing\_kms\_instance\_guid) | The GUID of the Hyper Protect or Key Protect instance in which the key specified in var.kms\_key\_crn and var.backup\_encryption\_key\_crn is coming from. Only required if var.kms\_encryption\_enabled is 'true', var.skip\_iam\_authorization\_policy is 'false', and passing a value for var.kms\_key\_crn and/or var.backup\_encryption\_key\_crn. | `string` | `null` | no |
9595
| <a name="input_kms_encryption_enabled"></a> [kms\_encryption\_enabled](#input\_kms\_encryption\_enabled) | Set this to true to control the encryption keys used to encrypt the data that you store in IBM Cloud® Databases. If set to false, the data is encrypted by using randomly generated keys. For more info on Key Protect integration, see https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect. For more info on HPCS integration, see https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-hpcs | `bool` | `false` | no |
9696
| <a name="input_kms_key_crn"></a> [kms\_key\_crn](#input\_kms\_key\_crn) | The root key CRN of a Key Management Services like Key Protect or Hyper Protect Crypto Service (HPCS) that you want to use for disk encryption. Only used if var.kms\_encryption\_enabled is set to true. | `string` | `null` | no |

solutions/secure/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ variable "plan" {
3434
variable "elasticsearch_version" {
3535
description = "The version of the Elasticsearch instance. If no value is passed, the current preferred version of IBM Cloud Databases is used."
3636
type = string
37-
default = "8.10"
37+
default = "8.12"
3838
}
3939

4040
variable "access_tags" {

tests/other_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestRunBasicExample(t *testing.T) {
2525
CloudInfoService: sharedInfoSvc,
2626

2727
TerraformVars: map[string]interface{}{
28-
"elasticsearch_version": "8.10", // Always lock this test into the latest supported elasticsearch version
28+
"elasticsearch_version": "8.12", // Always lock this test into the latest supported elasticsearch version
2929
},
3030
})
3131

@@ -52,7 +52,7 @@ func TestRunCompleteExampleOtherVersion(t *testing.T) {
5252
ResourceGroup: resourceGroup,
5353
BestRegionYAMLPath: regionSelectionPath,
5454
TerraformVars: map[string]interface{}{
55-
"elasticsearch_version": "8.7",
55+
"elasticsearch_version": "8.10",
5656
"existing_sm_instance_guid": permanentResources["secretsManagerGuid"],
5757
"existing_sm_instance_region": permanentResources["secretsManagerRegion"],
5858
"users": []map[string]interface{}{

tests/pr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func TestRunFSCloudExample(t *testing.T) {
5858
*/
5959
//ResourceGroup: resourceGroup,
6060
TerraformVars: map[string]interface{}{
61-
"elasticsearch_version": "8.10", // Always lock this test into the latest supported elasticsearch version
61+
"elasticsearch_version": "8.12", // Always lock this test into the latest supported elasticsearch version
6262
"access_tags": permanentResources["accessTags"],
6363
"existing_kms_instance_guid": permanentResources["hpcs_south"],
6464
"kms_key_crn": permanentResources["hpcs_south_root_key_crn"],

variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ variable "service_endpoints" {
4343

4444
variable "elasticsearch_version" {
4545
type = string
46-
description = "Version of Elasticsearch to deploy, must be 8.7 or 8.10 (Enterprise plan only or Platinum if 8.10 or above). If no value passed, the current ICD preferred version is used."
46+
description = "Version of Elasticsearch to deploy, must be 8.10 or 8.12 (Enterprise plan only or Platinum if 8.10 or above). If no value passed, the current ICD preferred version is used."
4747
default = null
4848
validation {
4949
condition = anytrue([
5050
var.elasticsearch_version == null,
51-
var.elasticsearch_version == "8.7",
5251
var.elasticsearch_version == "8.10",
52+
var.elasticsearch_version == "8.12",
5353
])
54-
error_message = "Version must be 8.7 or 8.10 (Enterprise plan only or Platinum if 8.10 or above). If no value passed, the current ICD preferred version is used."
54+
error_message = "Version must be 8.10 or 8.12 (Enterprise plan only or Platinum if 8.10 or above). If no value passed, the current ICD preferred version is used."
5555
}
5656
}
5757

0 commit comments

Comments
 (0)