Skip to content

Commit 2ede7bc

Browse files
authored
Merge pull request #43650 from oracle-community/exadata-infra
Exadata infrastructure resource and data source
2 parents 8843156 + 7b22fb5 commit 2ede7bc

9 files changed

+1831
-2
lines changed

.changelog/43650.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
```release-note:new-resource
2+
aws_odb_cloud_exadata_infrastructure
3+
```
4+
5+
```release-note:new-data-source
6+
aws_odb_cloud_exadata_infrastructure
7+
```
8+

examples/odb/exadata_infra.tf

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright (c) HashiCorp, Inc.
2+
# SPDX-License-Identifier: MPL-2.0
3+
4+
# Exadata Infrastructure with customer managed maintenance window
5+
resource "aws_odb_cloud_exadata_infrastructure" "exa_infra_all_params" {
6+
display_name = "Ofake-my-exa-infra"
7+
shape = "Exadata.X11M"
8+
storage_count = 3
9+
compute_count = 2
10+
availability_zone_id = "use1-az6"
11+
customer_contacts_to_send_to_oci = [{ email = "[email protected]" }, { email = "[email protected]" }]
12+
database_server_type = "X11M"
13+
storage_server_type = "X11M-HC"
14+
maintenance_window {
15+
custom_action_timeout_in_mins = 16
16+
days_of_week = [{ name = "MONDAY" }, { name = "TUESDAY" }]
17+
hours_of_day = [11, 16]
18+
is_custom_action_timeout_enabled = true
19+
lead_time_in_weeks = 3
20+
months = [{ name = "FEBRUARY" }, { name = "MAY" }, { name = "AUGUST" }, { name = "NOVEMBER" }]
21+
patching_mode = "ROLLING"
22+
preference = "CUSTOM_PREFERENCE"
23+
weeks_of_month = [2, 4]
24+
}
25+
tags = {
26+
"env" = "dev"
27+
}
28+
29+
}
30+
31+
# Exadata Infrastructure with default maintenance window with X9M system shape. with minimum parameters
32+
resource "aws_odb_cloud_exadata_infrastructure" "exa_infra_basic" {
33+
display_name = "Ofake_my_exa_X9M"
34+
shape = "Exadata.X9M"
35+
storage_count = 3
36+
compute_count = 2
37+
availability_zone_id = "use1-az6"
38+
maintenance_window {
39+
custom_action_timeout_in_mins = 16
40+
is_custom_action_timeout_enabled = true
41+
patching_mode = "ROLLING"
42+
preference = "NO_PREFERENCE"
43+
}
44+
}

0 commit comments

Comments
 (0)