Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 48 additions & 18 deletions examples/odb/autonomous_vm_cluster.tf
Original file line number Diff line number Diff line change
@@ -1,25 +1,55 @@
//Copyright © 2025, Oracle and/or its affiliates. All rights reserved.

//Autonomous VM Cluster with default maintenance window
//Autonomous VM Cluster with default maintenance window and minimum parameters
resource "aws_odb_cloud_autonomous_vm_cluster" "avmc_with_minimum_parameters" {
cloud_exadata_infrastructure_id = "<exadata_infra_id>" //refer your exadata infra id
odb_network_id = "<odb_net_id>" //refer_your_odb_net_id
display_name = "Ofake-avmc-my_avmc"
autonomous_data_storage_size_in_tbs = 5
memory_per_oracle_compute_unit_in_gbs = 2
total_container_databases = 1
cpu_core_count_per_node = 40
license_model = "LICENSE_INCLUDED"
//ids of db server. refer your exa infra. This is a manadatory fileld. Refer your cloud exadata infrastructure for db server id
db_servers = ["<my_db_server_id>"]
scan_listener_port_tls = 8561
scan_listener_port_non_tls = 1024
maintenance_window = {
preference = "NO_PREFERENCE"
days_of_week = []
hours_of_day = []
months = []
weeks_of_month = []
lead_time_in_weeks = 0
}

}

//Autonomous VM Cluster with all parameters
resource "aws_odb_cloud_autonomous_vm_cluster" "test" {
cloud_exadata_infrastructure_id = "<exadata_infra_id>" //refer your exadata infra id
odb_network_id = "<odb_net_id>" //refer_your_odb_net_id
display_name = "Ofake-avmc-my_avmc"
autonomous_data_storage_size_in_tbs = 5
memory_per_oracle_compute_unit_in_gbs = 2
total_container_databases = 1
cpu_core_count_per_node = 40
license_model = "LICENSE_INCLUDED"
db_servers = [] //ids of db server. refer your exa infra
scan_listener_port_tls = 8561
scan_listener_port_non_tls = 1024
description = "my first avmc"
time_zone = "UTC"
cloud_exadata_infrastructure_id = "<aws_odb_cloud_exadata_infrastructure.test.id>"
odb_network_id = "<aws_odb_network.test.id>"
display_name = "Ofake_my avmc"
autonomous_data_storage_size_in_tbs = 5
memory_per_oracle_compute_unit_in_gbs = 2
total_container_databases = 1
cpu_core_count_per_node = 40
license_model = "LICENSE_INCLUDED"
db_servers = ["<my_db_server_1>", "<my_db_server_2>"]
scan_listener_port_tls = 8561
scan_listener_port_non_tls = 1024
maintenance_window = {
preference = "NO_PREFERENCE"
days_of_week = []
hours_of_day = []
months = []
weeks_of_month =[]
lead_time_in_weeks = 0
preference = "CUSTOM_PREFERENCE"
days_of_week = ["MONDAY", "TUESDAY"]
hours_of_day = [4, 16]
months = ["FEBRUARY", "MAY", "AUGUST", "NOVEMBER"]
weeks_of_month = [2, 4]
lead_time_in_weeks = 3
}
tags = {
"env" = "dev"
}

}
56 changes: 37 additions & 19 deletions examples/odb/exadata_infra.tf
Original file line number Diff line number Diff line change
@@ -1,30 +1,48 @@
//Copyright © 2025, Oracle and/or its affiliates. All rights reserved.

//Exadata Infrastructure with customer managed maintenance window
resource "aws_odb_cloud_exadata_infrastructure" "test" {
display_name = "Ofake_odb_exadata_infra" //Required Field
shape = "Exadata.X11M" //Required Field
storage_count = 3
compute_count = 2
availability_zone_id = "use1-az6" //Required Field
customer_contacts_to_send_to_oci = ["abc@example.com"]
database_server_type = "X11M"
storage_server_type = "X11M-HC"
resource "aws_odb_cloud_exadata_infrastructure" "exa_infra_X11M_all_param" {
display_name = "Ofake_my_odb_exadata_infra" //Required Field
shape = "Exadata.X11M" //Required Field
storage_count = 3
compute_count = 2
availability_zone_id = "use1-az6" //Required Field
customer_contacts_to_send_to_oci = ["abc@example.com"]
database_server_type = "X11M"
storage_server_type = "X11M-HC"
maintenance_window = { //Required
custom_action_timeout_in_mins = 16
days_of_week = ["MONDAY", "TUESDAY"]
hours_of_day = [11, 16]
is_custom_action_timeout_enabled = true
lead_time_in_weeks = 3
months = ["FEBRUARY", "MAY", "AUGUST", "NOVEMBER"]
patching_mode = "ROLLING"
preference = "CUSTOM_PREFERENCE"
weeks_of_month = [2, 4]
custom_action_timeout_in_mins = 16
days_of_week = ["MONDAY", "TUESDAY"]
hours_of_day = [11, 16]
is_custom_action_timeout_enabled = true
lead_time_in_weeks = 3
months = ["FEBRUARY", "MAY", "AUGUST", "NOVEMBER"]
patching_mode = "ROLLING"
preference = "CUSTOM_PREFERENCE"
weeks_of_month = [2, 4]
}
tags = {
"env" = "dev"
}

}

//Exadata Infrastructure with default maintenance window
//Exadata Infrastructure with default maintenance window with X9M system shape. with minimum parameters
resource "aws_odb_cloud_exadata_infrastructure" "test_X9M" {
display_name = "Ofake_my_exa_X9M"
shape = "Exadata.X9M"
storage_count = 3
compute_count = 2
availability_zone_id = "use1-az6"
maintenance_window = {
custom_action_timeout_in_mins = 16
days_of_week = []
hours_of_day = []
is_custom_action_timeout_enabled = true
lead_time_in_weeks = 0
months = []
patching_mode = "ROLLING"
preference = "NO_PREFERENCE"
weeks_of_month = []
}
}
4 changes: 2 additions & 2 deletions examples/odb/odb_network_peering.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

resource "aws_odb_network_peering_connection" "test" {
display_name = "my_odb_net_peering"
odb_network_id = aws_odb_network.test.id
peer_network_id = "vpc_id"
odb_network_id = "<aws_odb_network.test.id">
peer_network_id = "<vpc_id>"
}
40 changes: 35 additions & 5 deletions examples/odb/vm_cluster.tf
Original file line number Diff line number Diff line change
@@ -1,21 +1,51 @@
//Copyright © 2025, Oracle and/or its affiliates. All rights reserved.

resource "aws_odb_cloud_vm_cluster" "vmcluster" {
resource "aws_odb_cloud_vm_cluster" "my_vmcluster_with_minimum_parameters" {
display_name = "Ofake_my_vmc"
cloud_exadata_infrastructure_id = aws_odb_cloud_exadata_infrastructure.test.id
cloud_exadata_infrastructure_id = "<aws_odb_cloud_exadata_infrastructure.test.id>"
cpu_core_count = 6
gi_version = "23.0.0.0"
hostname_prefix = "apollo12"
ssh_public_keys = [""] //public ssh keys
odb_network_id = aws_odb_network.test.id
ssh_public_keys = [""] //public ssh keys
odb_network_id = "<aws_odb_network.test.id>"
is_local_backup_enabled = true
is_sparse_diskgroup_enabled = true
license_model = "LICENSE_INCLUDED"
data_storage_size_in_tbs = 20.0
db_servers = [""] //db-servers
db_servers = ["<my_deb_server>"] //db-servers
db_node_storage_size_in_gbs = 120.0
memory_size_in_gbs = 60
tags = {
"env" = "dev"
}
}


resource "aws_odb_cloud_vm_cluster" "my_vmc_with_all_parameters" {
display_name = "Ofake_my_vmc"
cloud_exadata_infrastructure_id = "<aws_odb_cloud_exadata_infrastructure.test.id>"
cpu_core_count = 6
gi_version = "23.0.0.0"
hostname_prefix = "apollo12"
ssh_public_keys = ["<my_ssh_public_key>"]
odb_network_id = "<aws_odb_network.test.id>"
is_local_backup_enabled = true
is_sparse_diskgroup_enabled = true
license_model = "LICENSE_INCLUDED"
data_storage_size_in_tbs = 20.0
db_servers = ["<my_db_server>"]
db_node_storage_size_in_gbs = 120.0
memory_size_in_gbs = 60
cluster_name = "julia-13"
timezone = "UTC"
scan_listener_port_tcp = 1521
system_version = "23.1.26.0.0.250516"
tags = {
"env" = "dev"
}
data_collection_options = {
is_diagnostics_events_enabled = true
is_health_monitoring_enabled = true
is_incident_logs_enabled = true
}
}
Loading