Skip to content

Commit 39f964e

Browse files
committed
Merge branch 'master' of ssh://bitbucket.oci.oraclecorp.com:7999/orc/terraform-provider into release_gh
2 parents 4e94eed + f9d0184 commit 39f964e

File tree

367 files changed

+19481
-9622
lines changed

Some content is hidden

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

367 files changed

+19481
-9622
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 7.25.0 (November 4, 2025)
2+
3+
### Added
4+
- Support for new service Data Intelligence Foundation
5+
- Support for VM Instance - Snapshot/Restore Read only
6+
- ZPR and PSA support
7+
- Support for IPA-Graceful Termination of Instance in Instance Pool
8+
9+
### Bug Fix
10+
- make test compile failure
11+
112
## 7.24.0 (October 29, 2025)
213

314
### Added
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// use oci_database_db_node_snapshot_management resource to create dbnode snapshot(s)
2+
resource "oci_database_db_node_snapshot_management" "test_db_node_snapshot_management" {
3+
#Required
4+
exadb_vm_cluster_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.id
5+
source_dbnode_ids = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.node_resource[*].node_id
6+
name = "snapshot-tf-test"
7+
#Optional
8+
defined_tags = {
9+
"example-tag-namespace-all.example-tag" = "value"
10+
}
11+
freeform_tags = {
12+
"Department" = "Finance"
13+
}
14+
lifecycle {
15+
ignore_changes = [defined_tags, freeform_tags]
16+
}
17+
}
18+
19+
// use oci_database_db_node_snapshot resource to mount / unmount / delete dbnode snapshot
20+
resource "oci_database_db_node_snapshot" "test_db_node_snapshot" {
21+
#Required
22+
dbnode_snapshot_id = oci_database_db_node_snapshot_management.test_db_node_snapshot_management.snapshots[0].id
23+
mount_dbnode_id = "null"
24+
}
25+
26+
data "oci_database_db_node_snapshots" "test_db_node_snapshots" {
27+
#Required
28+
compartment_id = oci_database_exadb_vm_cluster.test_exadb_vm_cluster.compartment_id
29+
30+
#Optional
31+
cluster_id = oci_database_db_node_snapshot_management.test_db_node_snapshot_management.exadb_vm_cluster_id
32+
name = oci_database_db_node_snapshot_management.test_db_node_snapshot_management.snapshots[0].name
33+
source_dbnode_id = oci_database_db_node_snapshot_management.test_db_node_snapshot_management.snapshots[0].source_dbnode_id
34+
state = oci_database_db_node_snapshot_management.test_db_node_snapshot_management.snapshots[0].state
35+
36+
## Example: filter db_node_snapshots by name
37+
#filter {
38+
# name = "name"
39+
# regex = true
40+
# values = ["^\\w+-${oci_database_db_node_snapshot_management.test_db_node_snapshot_management.name}$"]
41+
#}
42+
#
43+
## Example: Get all but Terminated db_node_snapshots
44+
#filter {
45+
# name = "state"
46+
# values = ["CREATING", "AVAILABLE", "FAILED", "MOUNTED", "MOUNTING", "UNMOUNTING"]
47+
#}
48+
}
49+
50+
data "oci_database_db_node_snapshot" "test_db_node_snapshot" {
51+
#Required
52+
dbnode_snapshot_id = oci_database_db_node_snapshot_management.test_db_node_snapshot_management.snapshots[0].id
53+
}

examples/dif/stack.tf

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "tenancy_ocid" {
5+
}
6+
7+
variable "user_ocid" {
8+
}
9+
10+
variable "fingerprint" {
11+
}
12+
13+
variable "private_key_path" {
14+
}
15+
16+
variable "region" {
17+
}
18+
19+
provider "oci" {
20+
tenancy_ocid = var.tenancy_ocid
21+
user_ocid = var.user_ocid
22+
fingerprint = var.fingerprint
23+
private_key_path = var.private_key_path
24+
region = var.region
25+
}
26+
27+
variable "compartment_id" { }
28+
29+
variable "stack_display_name" {
30+
default = "testtfstack"
31+
}
32+
33+
variable "stack_freeform_tags" {
34+
default = { "Division" = "DEV" }
35+
}
36+
37+
variable "stack_adb_is_public" {
38+
default = false
39+
}
40+
41+
variable "password_secret_id" { }
42+
variable "dataflow_file_uri" { }
43+
variable "stack_subnet_id" { }
44+
45+
resource "oci_dif_stack" "test_stack" {
46+
#Required
47+
compartment_id = var.compartment_id
48+
display_name = var.stack_display_name
49+
50+
services = [
51+
"OBJECTSTORAGE", "ADB", "DATAFLOW"
52+
]
53+
54+
stack_templates = [
55+
"DATALAKE", "DATATRANSFORMATION"
56+
]
57+
58+
objectstorage {
59+
instance_id = "testLogBucket1"
60+
object_versioning = "ENABLED"
61+
storage_tier = "STANDARD"
62+
}
63+
64+
adb {
65+
instance_id = "testadb1"
66+
db_workload = "DW"
67+
ecpu = 2
68+
data_storage_size_in_tbs = 1
69+
admin_password_id = var.password_secret_id
70+
is_public = var.stack_adb_is_public
71+
subnet_id = var.stack_subnet_id
72+
db_version = "19c"
73+
}
74+
75+
dataflow {
76+
instance_id = "testApp"
77+
log_bucket_instance_id = "testLogBucket1"
78+
num_executors = "3"
79+
spark_version = "3.5.0"
80+
connections {
81+
connection_details {
82+
dif_dependencies {
83+
service_instance_id = "testadb1"
84+
service_type = "ADB"
85+
}
86+
domain_names = ["custpvtsubnet.oraclevcn.com"]
87+
}
88+
subnet_id = var.stack_subnet_id
89+
}
90+
driver_shape = "VM.Standard.E5.Flex"
91+
driver_shape_config {
92+
memory_in_gbs = "16"
93+
ocpus = "1"
94+
}
95+
executor_shape = "VM.Standard.E5.Flex"
96+
executor_shape_config {
97+
memory_in_gbs = "16"
98+
ocpus = "1"
99+
}
100+
execute = var.dataflow_file_uri
101+
}
102+
objectstorage {
103+
instance_id = "testBucket2"
104+
object_versioning = "DISABLED"
105+
storage_tier = "STANDARD"
106+
}
107+
108+
subnet_id = var.stack_subnet_id
109+
110+
deploy_artifacts_trigger = 1
111+
add_service_trigger = 1
112+
113+
//ignore so that this does not cause perpetual diff
114+
lifecycle {
115+
ignore_changes = [
116+
# Ignore service-generated metadata and tags
117+
defined_tags,
118+
freeform_tags,
119+
system_tags,
120+
service_details,
121+
time_created,
122+
time_updated,
123+
]
124+
}
125+
}

examples/vn_monitoring/path_analysis/main.tf

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
variable "region" {}
55
variable "compartment_ocid" {}
66

7+
variable "tenancy_ocid" {}
8+
79
variable "path_analysi_destination_endpoint_type" {
810
default = "SUBNET"
911
}
@@ -121,7 +123,7 @@ variable "on_prem_path_analyzer_test_destination_endpoint_type" {
121123
default = "ON_PREM"
122124
}
123125
variable "on_prem_path_analyzer_test_destination_endpoint_address" {
124-
default = "10.2.41.5"
126+
default = "10.50.1.5"
125127
}
126128
variable "on_prem_path_analyzer_test_protocol" {
127129
default = 6
@@ -130,7 +132,7 @@ variable "on_prem_path_analyzer_test_source_endpoint_type" {
130132
default = "IP_ADDRESS"
131133
}
132134
variable "on_prem_path_analyzer_test_source_endpoint_address" {
133-
default = "100.130.10.100"
135+
default = "10.11.1.5"
134136
}
135137
variable "on_prem_path_analyzer_test_display_name" {
136138
default = "On Prem Path Analysis"
@@ -186,3 +188,11 @@ resource "oci_vn_monitoring_path_analysi" "on_prem_test_path_analysis" {
186188
}
187189
}
188190

191+
data "oci_identity_availability_domains" "test_availability_domains" {
192+
compartment_id = var.tenancy_ocid
193+
}
194+
195+
output "ads" {
196+
value = data.oci_identity_availability_domains.test_availability_domains.availability_domains[0].name
197+
}
198+

examples/vn_monitoring/path_analyzer_test/main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
variable "region" {}
55
variable "compartment_ocid" {}
66

7+
variable "tenancy_ocid" {}
8+
79
variable "path_analyzer_test_defined_tags_value" {
810
default = "value"
911
}
@@ -212,3 +214,11 @@ data "oci_vn_monitoring_path_analyzer_tests" "test_path_analyzer_tests" {
212214
display_name = var.path_analyzer_test_display_name
213215
state = var.path_analyzer_test_state
214216
}
217+
218+
data "oci_identity_availability_domains" "test_availability_domains" {
219+
compartment_id = var.tenancy_ocid
220+
}
221+
222+
output "ads" {
223+
value = data.oci_identity_availability_domains.test_availability_domains.availability_domains[0].name
224+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/hashicorp/terraform-plugin-mux v0.18.0
1515
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
1616
github.com/hashicorp/terraform-plugin-testing v1.9.0
17-
github.com/oracle/oci-go-sdk/v65 v65.103.0
17+
github.com/oracle/oci-go-sdk/v65 v65.104.0
1818
github.com/stretchr/testify v1.9.0
1919
golang.org/x/mod v0.24.0
2020
gopkg.in/yaml.v2 v2.4.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ github.com/oracle/oci-go-sdk/v65 v65.102.1 h1:zLNLz5dVzZxOf5DK/f3WGZUjwrQ9m27fd4
209209
github.com/oracle/oci-go-sdk/v65 v65.102.1/go.mod h1:oB8jFGVc/7/zJ+DbleE8MzGHjhs2ioCz5stRTdZdIcY=
210210
github.com/oracle/oci-go-sdk/v65 v65.103.0 h1:HfyZx+JefCPK3At0Xt45q+wr914jDXuoyzOFX3XCbno=
211211
github.com/oracle/oci-go-sdk/v65 v65.103.0/go.mod h1:oB8jFGVc/7/zJ+DbleE8MzGHjhs2ioCz5stRTdZdIcY=
212+
github.com/oracle/oci-go-sdk/v65 v65.104.0 h1:l9awEvzWvxmYhy/97A0hZ87pa7BncYXmcO/S8+rvgK0=
213+
github.com/oracle/oci-go-sdk/v65 v65.104.0/go.mod h1:oB8jFGVc/7/zJ+DbleE8MzGHjhs2ioCz5stRTdZdIcY=
212214
github.com/pjbgf/sha1cd v0.3.2 h1:a9wb0bp1oC2TGwStyn0Umc/IGKQnEgF0vVaZ8QF8eo4=
213215
github.com/pjbgf/sha1cd v0.3.2/go.mod h1:zQWigSxVmsHEZow5qaLtPYxpcKMMQpa09ixqBxuCS6A=
214216
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8=

internal/client/dif_clients.go

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
package client
5+
6+
import (
7+
oci_dif "github.com/oracle/oci-go-sdk/v65/dif"
8+
9+
oci_common "github.com/oracle/oci-go-sdk/v65/common"
10+
)
11+
12+
func init() {
13+
RegisterOracleClient("oci_dif.StackClient", &OracleClient{InitClientFn: initDifStackClient})
14+
}
15+
16+
func initDifStackClient(configProvider oci_common.ConfigurationProvider, configureClient ConfigureClient, serviceClientOverrides ServiceClientOverrides) (interface{}, error) {
17+
client, err := oci_dif.NewStackClientWithConfigurationProvider(configProvider)
18+
if err != nil {
19+
return nil, err
20+
}
21+
err = configureClient(&client.BaseClient)
22+
if err != nil {
23+
return nil, err
24+
}
25+
26+
if serviceClientOverrides.HostUrlOverride != "" {
27+
client.Host = serviceClientOverrides.HostUrlOverride
28+
}
29+
return &client, nil
30+
}
31+
32+
func (m *OracleClients) StackClient() *oci_dif.StackClient {
33+
return m.GetClient("oci_dif.StackClient").(*oci_dif.StackClient)
34+
}

internal/globalvar/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"log"
88
)
99

10-
const Version = "7.24.0"
11-
const ReleaseDate = "2025-10-29"
10+
const Version = "7.25.0"
11+
const ReleaseDate = "2025-11-04"
1212

1313
func PrintVersion() {
1414
log.Printf("[INFO] terraform-provider-oci %s\n", Version)

0 commit comments

Comments
 (0)