@@ -51,45 +51,25 @@ resource "oci_core_subnet" "exadata_subnet" {
5151 dns_label = " subnetexadata"
5252}
5353
54- resource "oci_database_autonomous_exadata_infrastructure" "test_autonomous_exadata_infrastructure" {
54+ resource "oci_database_cloud_exadata_infrastructure" "test_cloud_exadata_infrastructure" {
55+ # Required
5556 availability_domain = data. oci_identity_availability_domain . ad . name
5657 compartment_id = var. compartment_ocid
57- display_name = " TestExadata11"
58- domain = var. autonomous_exadata_infrastructure_domain
59- freeform_tags = var. autonomous_database_freeform_tags
60- license_model = " LICENSE_INCLUDED"
61-
62- maintenance_window_details {
63- preference = " CUSTOM_PREFERENCE"
64-
65- days_of_week {
66- name = " MONDAY"
67- }
68-
69- hours_of_day = [" 4" ]
70-
71- months {
72- name = " JANUARY"
73- }
58+ display_name = " TFATPD"
59+ shape = var. cloud_exadata_infrastructure_shape
7460
75- months {
76- name = " APRIL"
77- }
78-
79- months {
80- name = " JULY"
81- }
82-
83- months {
84- name = " OCTOBER"
85- }
86-
87- weeks_of_month = [" 2" ]
88- }
61+ # Optional
62+ compute_count = var. cloud_exadata_infrastructure_compute_count
63+ storage_count = var. cloud_exadata_infrastructure_storage_count
64+ }
8965
90- nsg_ids = [oci_core_network_security_group . test_network_security_group . id ]
91- shape = " Exadata.X8M"
92- subnet_id = oci_core_subnet. exadata_subnet . id
66+ resource "oci_database_cloud_autonomous_vm_cluster" "test_cloud_autonomous_vm_cluster" {
67+ cloud_exadata_infrastructure_id = oci_database_cloud_exadata_infrastructure. test_cloud_exadata_infrastructure . id
68+ compartment_id = var. compartment_ocid
69+ display_name = " TestCloudAutonomousVmCluster"
70+ freeform_tags = var. autonomous_database_freeform_tags
71+ license_model = " LICENSE_INCLUDED"
72+ subnet_id = oci_core_subnet. exadata_subnet . id
9373}
9474
9575resource "oci_core_network_security_group" "test_network_security_group" {
@@ -98,18 +78,6 @@ resource "oci_core_network_security_group" "test_network_security_group" {
9878 vcn_id = oci_core_vcn. test_vcn . id
9979}
10080
101- data "oci_database_autonomous_exadata_infrastructures" "test_autonomous_exadata_infrastructures" {
102- availability_domain = data. oci_identity_availability_domain . ad . name
103- compartment_id = var. compartment_ocid
104- display_name = " TestExadata"
105- state = " AVAILABLE"
106- }
107-
108- data "oci_database_autonomous_exadata_infrastructure" "test_autonomous_exadata_infrastructure" {
109- autonomous_exadata_infrastructure_id = oci_database_autonomous_exadata_infrastructure. test_autonomous_exadata_infrastructure . id
110- }
111-
112- output "test_autonomous_exadata_infrastructures" {
113- value = [data . oci_database_autonomous_exadata_infrastructures . test_autonomous_exadata_infrastructures . autonomous_exadata_infrastructures ]
114- }
115-
81+ data "oci_database_cloud_autonomous_vm_cluster" "test_cloud_autonomous_vm_cluster" {
82+ cloud_autonomous_vm_cluster_id = oci_database_cloud_autonomous_vm_cluster. test_cloud_autonomous_vm_cluster . id
83+ }
0 commit comments