Skip to content

Commit db7b0e8

Browse files
Merge branch 'master' of ssh://bitbucket.oci.oraclecorp.com:7999/orc/terraform-provider into release_gh
2 parents 0b1b943 + 579adf1 commit db7b0e8

File tree

503 files changed

+28856
-3209
lines changed

Some content is hidden

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

503 files changed

+28856
-3209
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## 7.27.0 (November 20, 2025)
2+
3+
### Added
4+
- Support for Marketplace Service Catalog Access Control feature
5+
- Support for Compute: GPU Memory Fabric API - Firmware Pinning
6+
- Support for Refresh Exa Dataguard Health
7+
- Support for AWS integration for DB@AWS - DBMCI
8+
- Support for Private Service Access
9+
- Support for GGS Zero ETL Usability Improvements
10+
- Support for Zero-Trust Packet Routing (ZPR) Security Attribute Onboarding for bastion service
11+
- Support for IPv6 and Reserved IPs in API Gateway
12+
- Support for IoT actions APIs and spec bug fixes
13+
- Support for [Terraform] Support AWS KMS integration for DB@AWS
14+
- Support for Data Catalog - ZPR Intercom
15+
- Revert SIGINT changes for ODSC
16+
- config for retries
17+
18+
### Bug Fix
19+
- added support for real resource for Autonomous CC
20+
121
## 7.26.1 (November 13, 2025)
222
- Reverted Support for Passing TF CLI context to Go SDK
323

examples/api_gateway/gateway/main.tf

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

2222
variable "gateway_endpoint_type" {
23-
default = "PRIVATE"
23+
default = "PUBLIC"
2424
}
2525

2626
variable "gateway_state" {
@@ -51,6 +51,10 @@ variable "deployment_state" {
5151
default = "ACTIVE"
5252
}
5353

54+
variable "gateway_ip_mode" {
55+
default = "IPV4"
56+
}
57+
5458
provider "oci" {
5559
tenancy_ocid = var.tenancy_ocid
5660
user_ocid = var.user_ocid
@@ -70,6 +74,12 @@ resource "oci_core_subnet" "regional_subnet" {
7074
dhcp_options_id = oci_core_vcn.vcn1.default_dhcp_options_id
7175
}
7276

77+
resource "oci_core_public_ip" "reserved_public_ip" {
78+
compartment_id = var.compartment_ocid
79+
display_name = "reservedPublicIp"
80+
lifetime = "RESERVED"
81+
}
82+
7383
data "oci_identity_availability_domain" "ad" {
7484
compartment_id = var.tenancy_ocid
7585
ad_number = 1
@@ -87,6 +97,11 @@ resource "oci_apigateway_gateway" "test_gateway" {
8797
compartment_id = var.compartment_ocid
8898
endpoint_type = var.gateway_endpoint_type
8999
subnet_id = oci_core_subnet.regional_subnet.id
100+
ip_mode = var.gateway_ip_mode
101+
#Optional
102+
ipv4address_configuration {
103+
reserved_ip_ids = [oci_core_public_ip.reserved_public_ip.id]
104+
}
90105
}
91106

92107
resource "oci_apigateway_deployment" "test_deployment" {

examples/bastion/bastion.tf

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ variable "bastion_name" {
2424
default = "bastionExample"
2525
}
2626

27+
variable "bastionWithSA_name" {
28+
default = "bastionExampleWithSA"
29+
}
30+
2731
variable "bastion_freeform_tags" {
2832
default = {
2933
"bar-key" = "bastion_test"
@@ -42,21 +46,20 @@ variable "tag_namespace_name" {
4246
default = "testexamples-tag-namespace"
4347
}
4448

45-
4649
provider "oci" {
4750
tenancy_ocid = var.tenancy_ocid
4851
user_ocid = var.user_ocid
4952
fingerprint = var.fingerprint
5053
private_key_path = var.private_key_path
5154
region = var.region
55+
#version = "7.22.0"
5256
}
5357

5458
resource "oci_bastion_bastion" "test_bastion" {
5559
#Required
5660
bastion_type = "STANDARD"
5761
compartment_id = var.compartment_ocid
5862
target_subnet_id = oci_core_subnet.test_subnet.id
59-
6063
#Optional
6164
client_cidr_block_allow_list = var.bastion_client_cidr_block_allow_list
6265
defined_tags = {
@@ -67,6 +70,26 @@ resource "oci_bastion_bastion" "test_bastion" {
6770
max_session_ttl_in_seconds = var.bastion_max_session_ttl_in_seconds
6871
}
6972

73+
resource "oci_bastion_bastion" "test_bastion_with_security_attribute" {
74+
#Required
75+
bastion_type = "STANDARD"
76+
compartment_id = var.compartment_ocid
77+
target_subnet_id = oci_core_subnet.test_subnet.id
78+
#Optional
79+
client_cidr_block_allow_list = var.bastion_client_cidr_block_allow_list
80+
defined_tags = {
81+
"${oci_identity_tag_namespace.bastion_tag_namespace1.name}.${oci_identity_tag.bastion_tag1.name}" = var.bastion_defined_tags_value
82+
}
83+
name = var.bastionWithSA_name
84+
freeform_tags = var.bastion_freeform_tags
85+
max_session_ttl_in_seconds = var.bastion_max_session_ttl_in_seconds
86+
#Similarly you can add SA to session
87+
security_attributes = {
88+
"oracle-zpr.sensitivity.value" = "42"
89+
"oracle-zpr.sensitivity.mode" = "enforce"
90+
}
91+
}
92+
7093
data "oci_bastion_bastions" "test_bastions" {
7194
#Required
7295
compartment_id = var.compartment_ocid
@@ -77,9 +100,6 @@ data "oci_bastion_bastions" "test_bastions" {
77100
name = var.bastion_name
78101
}
79102

80-
data "oci_core_services" "test_bastion_services" {
81-
}
82-
83103
data "oci_identity_availability_domain" "bastion_ad" {
84104
compartment_id = var.tenancy_ocid
85105
ad_number = 1

examples/bastion/instance.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ resource "oci_core_instance" "test_instance" {
1212
availability_domain = data.oci_identity_availability_domain.bastion_ad.name
1313
compartment_id = var.compartment_ocid
1414
display_name = "TestInstance"
15-
shape = "VM.Standard2.1"
16-
15+
shape = "VM.Standard.E4.Flex"
16+
shape_config {
17+
ocpus = 1
18+
memory_in_gbs = 16
19+
}
1720
agent_config {
1821
are_all_plugins_disabled = false
1922
is_management_disabled = false

examples/bastion/network.tf

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@ resource "oci_core_vcn" "test_bastion_vcn" {
55
dns_label = "testvcn"
66
}
77

8+
# Returns: “All <region> Services In Oracle Services Network”
9+
data "oci_core_services" "osn_all" {
10+
filter {
11+
name = "name"
12+
values = ["^All .* Services In Oracle Services Network$"]
13+
regex = true
14+
}
15+
}
16+
817
resource "oci_core_service_gateway" "test_bastion_service_gateway" {
918
compartment_id = var.compartment_ocid
1019
display_name = "sgw"
1120

1221
services {
13-
service_id = data.oci_core_services.test_bastion_services.services[0]["id"]
22+
service_id = data.oci_core_services.osn_all.services[0].id
1423
}
1524

1625
vcn_id = oci_core_vcn.test_bastion_vcn.id
@@ -21,7 +30,7 @@ resource "oci_core_default_route_table" "bastion_default_route_table" {
2130
display_name = "DefaultRouteTable"
2231

2332
route_rules {
24-
destination = lookup(data.oci_core_services.test_bastion_services.services[0], "cidr_block")
33+
destination = data.oci_core_services.osn_all.services[0].cidr_block
2534
destination_type = "SERVICE_CIDR_BLOCK"
2635
network_entity_id = oci_core_service_gateway.test_bastion_service_gateway.id
2736
}

examples/bastion/session.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ variable "session_target_resource_details_target_resource_port" {
3636
resource "time_sleep" "wait_3_minutes_for_bastion_plugin" {
3737
depends_on = [oci_core_instance.test_instance]
3838

39-
create_duration = "5m"
39+
create_duration = "10m"
4040
}
4141

4242
resource "oci_bastion_session" "test_session_managed_ssh" {

examples/compute/gpu_memory_fabric/gpu_memory_fabric.tf

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ variable "region" {}
99
variable "config_file_profile" {}
1010
variable "compartment_ocid" {}
1111
variable "tenancy_ocid" {}
12+
variable "firmware_bundle_id" {}
1213

1314
variable "compute_gpu_memory_fabric_compute_gpu_memory_fabric_health" {
1415
default = "HEALTHY"
@@ -23,7 +24,7 @@ variable "compute_gpu_memory_fabric_freeform_tags" {
2324
}
2425

2526
data "oci_identity_availability_domain" "ad" {
26-
compartment_id = var.tenancy_ocid
27+
compartment_id = var.compartment_ocid
2728
ad_number = 1
2829
}
2930

@@ -34,8 +35,8 @@ output "ad" {
3435
data "oci_core_compute_gpu_memory_fabrics" "gpu_memory_fabrics" {
3536
compartment_id = var.tenancy_ocid
3637
availability_domain = data.oci_identity_availability_domain.ad.name
37-
compute_gpu_memory_fabric_health = "HEALTHY"
38-
compute_gpu_memory_fabric_lifecycle_state = "AVAILABLE"
38+
compute_gpu_memory_fabric_health = var.compute_gpu_memory_fabric_compute_gpu_memory_fabric_health
39+
compute_gpu_memory_fabric_lifecycle_state = var.compute_gpu_memory_fabric_compute_gpu_memory_fabric_lifecycle_state
3940
}
4041

4142
output "list_gpu_memory_fabrics" {
@@ -53,6 +54,10 @@ output "get_gpu_memory_fabric" {
5354
resource "oci_core_compute_gpu_memory_fabric" "gpu_memory_fabric" {
5455
compute_gpu_memory_fabric_id = data.oci_core_compute_gpu_memory_fabrics.gpu_memory_fabrics.compute_gpu_memory_fabric_collection[0].items[0].id
5556
freeform_tags = var.compute_gpu_memory_fabric_freeform_tags
57+
memory_fabric_preferences {
58+
customer_desired_firmware_bundle_id = var.firmware_bundle_id
59+
fabric_recycle_level = "FULL_RECYCLE"
60+
}
5661
}
5762

5863
output "gpu_memory_fabric" {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
provider "oci" {
5+
tenancy_ocid = var.tenancy_ocid
6+
user_ocid = var.user_ocid
7+
fingerprint = var.fingerprint
8+
private_key_path = var.private_key_path
9+
region = var.region
10+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
resource "oci_database_cloud_vm_cluster" "aws_cluster" {
2+
# import this resource because we need identity connector set up which is a multi cloud dependency
3+
4+
}
5+
6+
resource "oci_database_db_home" "test_db_home_vm_cluster_no_db" {
7+
vm_cluster_id = oci_database_cloud_vm_cluster.aws_cluster.id
8+
9+
# VM_CLUSTER_BACKUP can also be specified as a source for cloud VM clusters.
10+
source = "VM_CLUSTER_NEW"
11+
db_version = "23.0.0.0.0"
12+
display_name = "createdDbHomeNoDb"
13+
}
14+
15+
resource "oci_database_database" "test_database_create" {
16+
#Required
17+
database {
18+
admin_password = "BEstrO0ng_#11"
19+
db_name = "TFdb1"
20+
character_set = "AL32UTF8"
21+
ncharacter_set = "AL16UTF16"
22+
db_workload = "OLTP"
23+
24+
db_backup_config {
25+
auto_backup_enabled = false
26+
}
27+
28+
encryption_key_location_details {
29+
#Required
30+
azure_encryption_key_id = var.aws_encryption_key
31+
provider_type = "AWS"
32+
}
33+
}
34+
35+
db_home_id = oci_database_db_home.test_db_home_vm_cluster_no_db.id
36+
source = "NONE"
37+
}
38+
39+
40+
resource "oci_database_database" "test_database_migrate" {
41+
#Required
42+
database {
43+
admin_password = "BEstrO0ng_#11"
44+
db_name = "TFdb2"
45+
character_set = "AL32UTF8"
46+
ncharacter_set = "AL16UTF16"
47+
db_workload = "OLTP"
48+
49+
db_backup_config {
50+
auto_backup_enabled = false
51+
}
52+
/*
53+
encryption_key_location_details {
54+
#Required
55+
aws_encryption_key_id = var.aws_encryption_key
56+
provider_type = "AWS"
57+
}
58+
*/
59+
}
60+
61+
db_home_id = oci_database_db_home.test_db_home_vm_cluster_no_db.id
62+
source = "NONE"
63+
}

0 commit comments

Comments
 (0)