Skip to content

Commit 163e4be

Browse files
authored
Merge pull request #1703 from oracle/release_gh_4_98_0
Releasing v4.98.0
2 parents 671b3e6 + f5da015 commit 163e4be

File tree

252 files changed

+18820
-657
lines changed

Some content is hidden

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

252 files changed

+18820
-657
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 4.98.0 (November 02, 2022)
2+
3+
### Added
4+
- Support for Oracle Process Automation (OPA) - Customer Facing Release
5+
- Support for Logging Analytics Customer-Provided Encryption Keys
6+
- Support for ADB-S: Restore / Clone from backup from last available timestamp
7+
- Support for third-party scanner
8+
- Support for filtering in resource discovery
9+
### Bug Fix
10+
- Update failures with SCH terraform provider
11+
112
## 4.97.0 (October 28, 2022)
213

314
### Added

coverage/coverage_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
var totalRgx = regexp.MustCompile(`total:\s+\(statements\)\s+([^"]*)%`)
1616

17-
const CodeCoverageThreshold = 56.1
17+
const CodeCoverageThreshold = 57.1
1818

1919
func TestCoverage(t *testing.T) {
2020
if os.Getenv("CHECK_COVERAGE") != "true" {

examples/database/adb/autonomous_database.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,20 @@ resource "oci_database_autonomous_database" "autonomous_database_from_backup_tim
138138
}
139139
*/
140140

141+
resource "oci_database_autonomous_database" "autonomous_database_from_backup_latest" {
142+
#Required
143+
admin_password = random_string.autonomous_database_admin_password.result
144+
compartment_id = var.compartment_ocid
145+
cpu_core_count = "1"
146+
data_storage_size_in_tbs = "1"
147+
db_name = "adbdb3"
148+
149+
clone_type = "FULL"
150+
source = "BACKUP_FROM_TIMESTAMP"
151+
autonomous_database_id = oci_database_autonomous_database_backup.autonomous_database_backup.autonomous_database_id
152+
use_latest_available_backup_time_stamp = "true"
153+
}
154+
141155
data "oci_database_autonomous_databases" "autonomous_databases" {
142156
#Required
143157
compartment_id = var.compartment_ocid

examples/id6/description.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/id6/main.tf

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "tenancy_ocid" {}
5+
variable "user_ocid" {}
6+
variable "fingerprint" {}
7+
variable "private_key_path" {}
8+
variable "region" {}
9+
variable "compartment_ocid" {}
10+
11+
# Fetch namespace name from object store GET /n
12+
data "oci_objectstorage_namespace" "ns" {
13+
compartment_id = var.compartment_ocid
14+
}
15+
16+
data "oci_log_analytics_namespace_storage_encryption_key_info" "test_namespace_storage_encryption_key_info" {
17+
#Required
18+
namespace = data.oci_objectstorage_namespace.ns.namespace
19+
}

examples/opa/main.tf

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// Copyright (c) 2017, 2021, 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+
variable "compartment_id" {
20+
}
21+
22+
variable "idcs_access_token" {
23+
24+
}
25+
26+
provider "oci" {
27+
tenancy_ocid = var.tenancy_ocid
28+
user_ocid = var.user_ocid
29+
fingerprint = var.fingerprint
30+
private_key_path = var.private_key_path
31+
region = var.region
32+
}
33+
34+
resource "oci_opa_opa_instance" "test_opa_instance" {
35+
compartment_id = "${var.compartment_id}"
36+
consumption_model = "UCM"
37+
display_name = "displayName"
38+
idcs_at = "${var.idcs_access_token}"
39+
metering_type = "EXECUTION_PACK"
40+
shape_name = "PRODUCTION"
41+
}
42+
43+
data "oci_opa_opa_instances" "test_opa_instances" {
44+
compartment_id = "${var.compartment_id}"
45+
display_name = "displayName2"
46+
filter {
47+
name = "id"
48+
values = ["${oci_opa_opa_instance.test_opa_instance.id}"]
49+
}
50+
id = "${oci_opa_opa_instance.test_opa_instance.id}"
51+
state = "ACTIVE"
52+
}
53+
54+
data "oci_opa_opa_instance" "test_opa_instance" {
55+
opa_instance_id = "${oci_opa_opa_instance.test_opa_instance.id}"
56+
}

examples/service_connector_hub/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ resource "oci_sch_service_connector" "test_service_connector" {
140140
}
141141

142142
// If using streaming source
143-
source {
143+
/*source {
144144
kind = "Streaming"
145145
146146
// Optional
@@ -151,7 +151,7 @@ resource "oci_sch_service_connector" "test_service_connector" {
151151
}
152152
153153
stream_id = oci_streaming_stream.test_stream.id
154-
}
154+
}*/
155155

156156
target {
157157
kind = "streaming"
@@ -170,11 +170,11 @@ resource "oci_sch_service_connector" "test_service_connector" {
170170
}*/
171171

172172
// If using the log analytics target
173-
target {
173+
/*target {
174174
kind = "loggingAnalytics"
175175
log_group_id = var.log_analytics_log_group_id
176176
log_source_identifier = var.service_connector_target_log_source_identifier
177-
}
177+
}*/
178178

179179
// If using the notification target
180180
/*target {

examples/vulnerability_scanning_service/main.tf

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ variable "container_scan_recipe_freeform_tags" {
2020
}
2121

2222
variable "container_scan_recipe_defined_tags" {
23+
default = "bar-key"
2324
}
2425

2526
variable "container_scan_recipe_image_count" {
@@ -38,6 +39,10 @@ variable "container_repo_name" {
3839

3940
}
4041

42+
variable "vault_secret_ocid" {
43+
default = "some-secret-ocid"
44+
}
45+
4146
provider "oci" {
4247
tenancy_ocid = var.tenancy_ocid
4348
user_ocid = var.user_ocid
@@ -63,6 +68,9 @@ resource "oci_vulnerability_scanning_host_scan_recipe" "test_host_scan_recipe" {
6368
#Optional
6469
scan_level = "NONE"
6570
}
71+
72+
#Optional
73+
vendor_type = "OCI"
6674
}
6775
}
6876
compartment_id = var.compartment_ocid
@@ -82,6 +90,45 @@ resource "oci_vulnerability_scanning_host_scan_recipe" "test_host_scan_recipe" {
8290
display_name = "TestHostScanRecipe"
8391
}
8492

93+
resource "oci_vulnerability_scanning_host_scan_recipe" "test_qualys_host_scan_recipe" {
94+
#Required
95+
agent_settings {
96+
#Required
97+
scan_level = "NONE"
98+
99+
#Optional
100+
agent_configuration {
101+
#Required
102+
vendor = "QUALYS"
103+
104+
#Required
105+
should_un_install = false
106+
107+
#Required
108+
vault_secret_id = var.vault_secret_ocid
109+
110+
#Optional
111+
vendor_type = "QUALYS"
112+
113+
}
114+
}
115+
compartment_id = var.compartment_ocid
116+
port_settings {
117+
#Required
118+
scan_level = "NONE"
119+
}
120+
schedule {
121+
#Required
122+
type = "DAILY"
123+
124+
#Optional
125+
day_of_week = "SUNDAY"
126+
}
127+
128+
#Optional
129+
display_name = "TestHostScanRecipe"
130+
}
131+
85132
resource "oci_vulnerability_scanning_host_scan_target" "test_host_scan_target" {
86133
#Required
87134
compartment_id = var.compartment_ocid
@@ -104,7 +151,6 @@ resource "oci_vulnerability_scanning_container_scan_recipe" "test_container_scan
104151
}
105152

106153
#Optional
107-
defined_tags = map(var.container_scan_recipe_defined_tags, var.container_scan_recipe_defined_tags_value)
108154
display_name = var.container_scan_recipe_display_name
109155
freeform_tags = var.container_scan_recipe_freeform_tags
110156
image_count = var.container_scan_recipe_image_count

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ require (
5353
github.com/mitchellh/mapstructure v1.1.2 // indirect
5454
github.com/mitchellh/reflectwalk v1.0.2 // indirect
5555
github.com/oklog/run v1.0.0 // indirect
56-
github.com/oracle/oci-go-sdk/v65 v65.24.0
56+
github.com/oracle/oci-go-sdk/v65 v65.25.0
5757
github.com/pmezard/go-difflib v1.0.0 // indirect
5858
github.com/sony/gobreaker v0.5.0 // indirect
5959
github.com/ulikunitz/xz v0.5.8 // indirect

0 commit comments

Comments
 (0)