diff --git a/scripts/ecpupatch/ecpu.patch b/scripts/ecpupatch/ecpu.patch new file mode 100644 index 0000000..4ac5f88 --- /dev/null +++ b/scripts/ecpupatch/ecpu.patch @@ -0,0 +1,12 @@ +--- main.tf 2025-09-02 17:41:14 ++++ main.tf.new 2025-09-02 17:59:54 +@@ -103,7 +103,8 @@ + resource "oci_database_autonomous_database" "autonomous_database" { + admin_password = local.bootstrap_password + compartment_id = var.compartment_id +- cpu_core_count = "1" ++ compute_model = "ECPU" ++ compute_count = "4.0" + data_storage_size_in_tbs = "1" + db_name = var.db_name + db_workload = var.db_workload == "Autonomous Transaction Processing" ? "OLTP" : "DW" diff --git a/scripts/ecpupatch/patch-DB-model.sh b/scripts/ecpupatch/patch-DB-model.sh deleted file mode 100755 index f5493d5..0000000 --- a/scripts/ecpupatch/patch-DB-model.sh +++ /dev/null @@ -1,17 +0,0 @@ -## Copyright (c) 2019 - 2023 Oracle and/or its affiliates. -## Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl. - -#!/bin/bash -e -# -# Copyright (c) 2023 Oracle and/or its affiliates. -# Licensed under the Universal Permissive License v1.0 as shown at http://oss.oracle.com/licenses/upl. -# - -#Patches the DB terraform file to deploy in ECPU model - -sed -i '' '/cpu_core_count = "1"/ { -s/^/#/ -a\ - compute_model = "ECPU\ - compute_count = "4.0" -}' ../../terraform/modules/database/main.tf \ No newline at end of file diff --git a/scripts/ecpupatch/readme.txt b/scripts/ecpupatch/readme.txt deleted file mode 100644 index a76fd94..0000000 --- a/scripts/ecpupatch/readme.txt +++ /dev/null @@ -1,17 +0,0 @@ -## Copyright (c) 2019 - 2023 Oracle and/or its affiliates. -## Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl. - -Patch file patch-DB-model.sh ----------------------------------------- - -Prologue: - -The DB model was changed from ocpu to ecpu model from Essbase releases from 21.7.3.0.1 as per Autonomous DB changes affecting OCI. -Details: https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-compute-models.html -This renders previous Essbase releases of Essbase on github unusable. -The patch script will execute and change the DB stack file to update it to ecpu model. - -How to run: - -Run the patch script on the scripts folder as kept in the github as -./patch-DB-model.sh \ No newline at end of file diff --git a/scripts/patchtfversion/update-tf-version.patch b/scripts/patchtfversion/update-tf-version.patch new file mode 100644 index 0000000..e992a78 --- /dev/null +++ b/scripts/patchtfversion/update-tf-version.patch @@ -0,0 +1,11 @@ +--- a/versions.tf ++++ b/versions.tf +@@ -3,7 +3,7 @@ + ## Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl. + + terraform { +- required_version = "~> 1.0" ++ required_version = "~> 1.5" + required_providers { + local = { + source = "hashicorp/local"