1- # Copyright © 2025, Oracle and/or its affiliates. All rights reserved.
1+ # Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
22
33# Exadata Infrastructure with customer managed maintenance window
4- resource "aws_odb_cloud_exadata_infrastructure" "exa_infra_X11M_all_param " {
5- display_name = " Ofake_my_odb_exadata_infra "
6- shape = " Exadata.X11M"
7- storage_count = 3
8- compute_count = 2
9- availability_zone_id = " use1-az6"
10- customer_contacts_to_send_to_oci = [
" [email protected] " ]
11- database_server_type = " X11M"
12- storage_server_type = " X11M-HC"
13- maintenance_window = {
14- custom_action_timeout_in_mins = 16
15- days_of_week = [ " MONDAY" , " TUESDAY" ]
16- hours_of_day = [11 , 16 ]
17- is_custom_action_timeout_enabled = true
18- lead_time_in_weeks = 3
19- months = [" FEBRUARY" , " MAY" , " AUGUST" , " NOVEMBER" ]
20- patching_mode = " ROLLING"
21- preference = " CUSTOM_PREFERENCE"
22- weeks_of_month = [2 , 4 ]
4+ resource "aws_odb_cloud_exadata_infrastructure" "exa_infra_all_params " {
5+ display_name = " Ofake-my-exa-infra "
6+ shape = " Exadata.X11M"
7+ storage_count = 3
8+ compute_count = 2
9+ availability_zone_id = " use1-az6"
10+ customer_contacts_to_send_to_oci = [
{email = " [email protected] " },{email = " [email protected] " } ]
11+ database_server_type = " X11M"
12+ storage_server_type = " X11M-HC"
13+ maintenance_window {
14+ custom_action_timeout_in_mins = 16
15+ days_of_week = [{ name = " MONDAY" }, {name = " TUESDAY" } ]
16+ hours_of_day = [11 ,16 ]
17+ is_custom_action_timeout_enabled = true
18+ lead_time_in_weeks = 3
19+ months = [{name = " FEBRUARY" },{name = " MAY" },{name = " AUGUST" },{name = " NOVEMBER" } ]
20+ patching_mode = " ROLLING"
21+ preference = " CUSTOM_PREFERENCE"
22+ weeks_of_month = [2 ,4 ]
2323 }
2424 tags = {
25- " env" = " dev"
25+ " env" = " dev"
2626 }
2727
2828}
2929
3030# Exadata Infrastructure with default maintenance window with X9M system shape. with minimum parameters
31- resource "aws_odb_cloud_exadata_infrastructure" "test_X9M " {
31+ resource "aws_odb_cloud_exadata_infrastructure" "exa_infra_basic " {
3232 display_name = " Ofake_my_exa_X9M"
3333 shape = " Exadata.X9M"
3434 storage_count = 3
3535 compute_count = 2
3636 availability_zone_id = " use1-az6"
37- maintenance_window = {
38- custom_action_timeout_in_mins = 16
39- days_of_week = []
40- hours_of_day = []
41- is_custom_action_timeout_enabled = true
42- lead_time_in_weeks = 0
43- months = []
44- patching_mode = " ROLLING "
45- preference = " NO_PREFERENCE "
46- weeks_of_month = []
47- }
37+ maintenance_window {
38+ custom_action_timeout_in_mins = 16
39+ is_custom_action_timeout_enabled = true
40+ patching_mode = " ROLLING "
41+ preference = " NO_PREFERENCE "
42+ }
43+ }
44+
45+ # data source for exa infra
46+ data "aws_odb_cloud_exadata_infrastructure" "get-exa-infra" {
47+ id = " <my-exa-infra-id> "
4848}
0 commit comments