Skip to content

Commit 0a129fd

Browse files
authored
Merge pull request #3 from oracle-community/odb-aws-2
lists and copywrite info
2 parents 0d34e31 + b80dde4 commit 0a129fd

File tree

44 files changed

+2417
-730
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2417
-730
lines changed

examples/odb/main.tf

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
//Copyright © 2025, Oracle and/or its affiliates. All rights reserved.
2+
3+
provider "aws" {
4+
region = "us-east-1"
5+
}
6+
7+
resource "aws_odb_cloud_exadata_infrastructure" "test" {
8+
display_name = "Ofake-exa-4157426154220451194"
9+
shape = "Exadata.X9M"
10+
storage_count = 3
11+
compute_count = 2
12+
availability_zone_id = "use1-az6"
13+
customer_contacts_to_send_to_oci = ["[email protected]"]
14+
maintenance_window = {
15+
custom_action_timeout_in_mins = 16
16+
days_of_week = []
17+
hours_of_day = []
18+
is_custom_action_timeout_enabled = true
19+
lead_time_in_weeks = 0
20+
months = []
21+
patching_mode = "ROLLING"
22+
preference = "NO_PREFERENCE"
23+
weeks_of_month =[]
24+
}
25+
}
26+
27+
28+
29+
30+
31+
32+
resource "aws_odb_network" "test" {
33+
display_name = "odb-net-6310376148776971562"
34+
availability_zone_id = "use1-az6"
35+
client_subnet_cidr = "10.2.0.0/24"
36+
backup_subnet_cidr = "10.2.1.0/24"
37+
s3_access = "DISABLED"
38+
zero_etl_access = "DISABLED"
39+
}
40+
41+
42+
43+
data "aws_odb_db_servers_list" "test" {
44+
cloud_exadata_infrastructure_id = aws_odb_cloud_exadata_infrastructure.test.id
45+
}
46+
47+
resource "aws_odb_cloud_autonomous_vm_cluster" "test" {
48+
cloud_exadata_infrastructure_id = aws_odb_cloud_exadata_infrastructure.test.id
49+
odb_network_id =aws_odb_network.test.id
50+
display_name = "Ofake-avmc-1515523754357569237"
51+
autonomous_data_storage_size_in_tbs = 5
52+
memory_per_oracle_compute_unit_in_gbs = 2
53+
total_container_databases = 1
54+
cpu_core_count_per_node = 40
55+
license_model = "LICENSE_INCLUDED"
56+
db_servers = [ for db_server in data.aws_odb_db_servers_list.test.db_servers : db_server.id]
57+
scan_listener_port_tls = 8561
58+
scan_listener_port_non_tls = 1024
59+
maintenance_window = {
60+
preference = "NO_PREFERENCE"
61+
days_of_week = []
62+
hours_of_day = []
63+
months = []
64+
weeks_of_month =[]
65+
lead_time_in_weeks = 0
66+
}
67+
68+
}
69+
70+
71+
data "aws_odb_cloud_autonomous_vm_cluster" "test" {
72+
id = aws_odb_cloud_autonomous_vm_cluster.test.id
73+
74+
}

examples/odb/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//Copyright © 2025, Oracle and/or its affiliates. All rights reserved.

0 commit comments

Comments
 (0)