|
| 1 | +# Copyright (c) HashiCorp, Inc. |
| 2 | +# SPDX-License-Identifier: MPL-2.0 |
| 3 | + |
| 4 | +# Autonomous VM Cluster with default maintenance window and minimum parameters |
| 5 | +resource "aws_odb_cloud_autonomous_vm_cluster" "avmc_with_minimum_parameters" { |
| 6 | + cloud_exadata_infrastructure_id = "<exadata_infra_id>" # refer your exadata infra id |
| 7 | + odb_network_id = "<odb_net_id>" # refer_your_odb_net_id |
| 8 | + display_name = "Ofake-avmc-my_avmc" |
| 9 | + autonomous_data_storage_size_in_tbs = 5 |
| 10 | + memory_per_oracle_compute_unit_in_gbs = 2 |
| 11 | + total_container_databases = 1 |
| 12 | + cpu_core_count_per_node = 40 |
| 13 | + license_model = "LICENSE_INCLUDED" |
| 14 | + # ids of db server. refer your exa infra. This is a manadatory fileld. Refer your cloud exadata infrastructure for db server id |
| 15 | + db_servers = ["<my_db_server_id>"] |
| 16 | + scan_listener_port_tls = 8561 |
| 17 | + scan_listener_port_non_tls = 1024 |
| 18 | + maintenance_window { |
| 19 | + preference = "NO_PREFERENCE" |
| 20 | + } |
| 21 | + |
| 22 | +} |
| 23 | + |
| 24 | +# Autonomous VM Cluster with all parameters |
| 25 | +resource "aws_odb_cloud_autonomous_vm_cluster" "test" { |
| 26 | + description = "my first avmc" |
| 27 | + time_zone = "UTC" |
| 28 | + cloud_exadata_infrastructure_id = "<aws_odb_cloud_exadata_infrastructure.test.id>" |
| 29 | + odb_network_id = "<aws_odb_network.test.id>" |
| 30 | + display_name = "Ofake_my avmc" |
| 31 | + autonomous_data_storage_size_in_tbs = 5 |
| 32 | + memory_per_oracle_compute_unit_in_gbs = 2 |
| 33 | + total_container_databases = 1 |
| 34 | + cpu_core_count_per_node = 40 |
| 35 | + license_model = "LICENSE_INCLUDED" |
| 36 | + db_servers = ["<my_db_server_1>", "<my_db_server_2>"] |
| 37 | + scan_listener_port_tls = 8561 |
| 38 | + scan_listener_port_non_tls = 1024 |
| 39 | + maintenance_window { |
| 40 | + days_of_week = [{ name = "MONDAY" }, { name = "TUESDAY" }] |
| 41 | + hours_of_day = [4, 16] |
| 42 | + lead_time_in_weeks = 3 |
| 43 | + months = [{ name = "FEBRUARY" }, { name = "MAY" }, { name = "AUGUST" }, { name = "NOVEMBER" }] |
| 44 | + preference = "CUSTOM_PREFERENCE" |
| 45 | + weeks_of_month = [2, 4] |
| 46 | + } |
| 47 | + tags = { |
| 48 | + "env" = "dev" |
| 49 | + } |
| 50 | + |
| 51 | +} |
0 commit comments