Skip to content

Commit 11846c3

Browse files
Merge pull request #1841 from oracle/release_gh
Releasing version 4.117.0
2 parents 6c92b19 + 287bd23 commit 11846c3

File tree

230 files changed

+8819
-445
lines changed

Some content is hidden

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

230 files changed

+8819
-445
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions

examples/fast_connect/cross_connect.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resource "oci_core_cross_connect" "cross_connect" {
55
#Required
66
compartment_id = var.compartment_ocid
77
location_name = data.oci_core_cross_connect_locations.cross_connect_locations.cross_connect_locations[0].name
8-
port_speed_shape_name = data.oci_core_cross_connect_port_speed_shapes.cross_connect_port_speed_shapes.cross_connect_port_speed_shapes[0].name
8+
port_speed_shape_name = data.oci_core_cross_connect_port_speed_shapes.cross_connect_port_speed_shapes.cross_connect_port_speed_shapes[1].name
99

1010
#Optional
1111
cross_connect_group_id = oci_core_cross_connect_group.cross_connect_group.id

examples/fast_connect/cross_connect_group.tf

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ output "cross_connect_groups" {
4848

4949
resource "oci_core_cross_connect_group" "test_cross_connect_group" {
5050
#Required
51-
compartment_id = "${var.compartment_ocid}"
51+
compartment_id = var.compartment_ocid
5252
#Optional
5353
customer_reference_name = "customerReferenceName"
54-
defined_tags = "${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}"
54+
defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")
5555
display_name = "displayName"
5656
freeform_tags = {
5757
"Department" = "Finance"
@@ -63,21 +63,47 @@ resource "oci_core_cross_connect_group" "test_cross_connect_group" {
6363
encryption_cipher = "AES256_GCM"
6464
primary_key {
6565
#Required
66-
connectivity_association_key_secret_id = "${var.secret_ocid_ckn}"
67-
connectivity_association_key_secret_version = "${var.secret_version_cak}"
68-
connectivity_association_name_secret_id = "${var.secret_ocid_cak}"
69-
connectivity_association_name_secret_version = "${var.secret_version_ckn}"
66+
connectivity_association_key_secret_id = var.secret_ocid_cak
67+
connectivity_association_name_secret_id = var.secret_ocid_ckn
68+
#Optional, api will always create with current version, but can use to update
69+
connectivity_association_key_secret_version = var.secret_version_cak
70+
connectivity_association_name_secret_version = var.secret_version_ckn
7071
}
7172

7273
}
7374
}
7475

76+
resource "oci_core_cross_connect_group" "test_cross_connect_group_2" {
77+
#Required
78+
compartment_id = var.compartment_ocid
79+
#Optional
80+
customer_reference_name = "customerReferenceName"
81+
defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")
82+
display_name = "displayName"
83+
freeform_tags = {
84+
"Department" = "Finance"
85+
}
86+
macsec_properties {
87+
#Required
88+
state = "ENABLED"
89+
#Optional
90+
encryption_cipher = "AES256_GCM"
91+
primary_key {
92+
#Required
93+
connectivity_association_key_secret_id = var.secret_ocid_cak
94+
connectivity_association_name_secret_id = var.secret_ocid_ckn
95+
#secret versions default to current version
96+
}
97+
98+
}
99+
}
100+
75101
variable defined_tag_namespace_name { default = "" }
76102
resource "oci_identity_tag_namespace" "tag-namespace1" {
77103
#Required
78-
compartment_id = "${var.tenancy_ocid}"
104+
compartment_id = var.tenancy_ocid
79105
description = "example tag namespace"
80-
name = "${var.defined_tag_namespace_name != "" ? var.defined_tag_namespace_name : "example-tag-namespace-all"}"
106+
name = var.defined_tag_namespace_name != "" ? var.defined_tag_namespace_name : "example-tag-namespace-all"
81107

82108
is_retired = false
83109
}
@@ -86,7 +112,7 @@ resource "oci_identity_tag" "tag1" {
86112
#Required
87113
description = "example tag"
88114
name = "example-tag"
89-
tag_namespace_id = "${oci_identity_tag_namespace.tag-namespace1.id}"
115+
tag_namespace_id = oci_identity_tag_namespace.tag-namespace1.id
90116

91117
is_retired = false
92118
}

examples/oracle_digital_assistant/main.tf

Lines changed: 103 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,46 @@ variable "oda_instance_state" {
2323
variable "compartment_ocid" {
2424
}
2525

26+
variable "oda_private_endpoint_display_name" {
27+
default = "oda_pe_name"
28+
}
29+
30+
variable "oda_private_endpoint_description" {
31+
default = "oda_pe_description"
32+
}
33+
34+
variable "oda_private_endpoint_freeform_tags" {
35+
default = { "test-key" = "value" }
36+
}
37+
38+
variable "oda_private_endpoint_nsg_ids" {
39+
default = []
40+
}
41+
42+
variable "oda_private_endpoint_defined_tags_value" {
43+
default = "value"
44+
}
45+
46+
variable "oda_private_endpoint_is_used_for_rac_dbs" {
47+
default = true
48+
}
49+
50+
variable "oda_private_endpoint_scan_proxy_protocol" {
51+
default = "TCP"
52+
}
53+
54+
variable "oda_private_endpoint_scan_proxy_scan_listener_infos_scan_listener_fqdn" {
55+
default = "myprefix-test-scan"
56+
}
57+
58+
variable "oda_private_endpoint_scan_proxy_scan_listener_infos_scan_listener_port" {
59+
default = 1521
60+
}
61+
62+
variable "oda_private_endpoint_scan_proxy_scan_listener_type" {
63+
default = "FQDN"
64+
}
65+
2666
provider "oci" {
2767
tenancy_ocid = var.tenancy_ocid
2868
user_ocid = var.user_ocid
@@ -47,11 +87,73 @@ data "oci_oda_oda_instances" "TFOdaInstances" {
4787

4888
#Optional
4989
display_name = oci_oda_oda_instance.TFOdaInstance.display_name
50-
#state = var.oda_instance_state
5190
}
5291

5392
data "oci_oda_oda_instance" "TFOdaInstance" {
5493
#Required
5594
oda_instance_id = oci_oda_oda_instance.TFOdaInstance.id
5695
}
5796

97+
resource "oci_oda_oda_private_endpoint" "TFOdaPrivateEndpoint" {
98+
compartment_id = var.compartment_ocid
99+
subnet_id = var.oda_private_endpoint_description
100+
vcn_id = oci_core_vcn.pe_vcn.id
101+
display_name = var.oda_private_endpoint_display_name
102+
description = var.oda_private_endpoint_description
103+
freeform_tags = var.oda_private_endpoint_freeform_tags
104+
nsg_ids = var.oda_private_endpoint_nsg_ids
105+
defined_tags = "${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.oda_private_endpoint_defined_tags_value}")}"
106+
is_used_for_rac_dbs = var.oda_private_endpoint_is_used_for_rac_dbs
107+
}
108+
109+
data "oci_oda_oda_private_endpoint" "test_oda_private_endpoint" {
110+
#Required
111+
oda_private_endpoint_id = oci_oda_oda_private_endpoint.TFOdaPrivateEndpoint.id
112+
}
113+
114+
data "oci_oda_oda_private_endpoints" "test_oda_private_endpoints" {
115+
#Required
116+
compartment_id = var.compartment_ocid
117+
118+
#Optional
119+
display_name = var.oda_private_endpoint_display_name
120+
}
121+
122+
resource "oci_oda_oda_private_endpoint_attachment" "TFOdaPrivateEndpointAttachment" {
123+
oda_instance_id = oci_oda_oda_instance.TFOdaInstance.id
124+
oda_private_endpoint_id = oci_oda_oda_private_endpoint.TFOdaPrivateEndpoint.id
125+
}
126+
127+
data "oci_oda_oda_private_endpoint_attachment" "test_oda_private_endpoint_attachment" {
128+
#Required
129+
oda_private_endpoint_attachment_id = oci_oda_oda_private_endpoint_attachment.TFOdaPrivateEndpointAttachment.id
130+
}
131+
132+
data "oci_oda_oda_private_endpoint_attachments" "test_oda_private_endpoint_attachments" {
133+
#Required
134+
compartment_id = var.compartment_ocid
135+
oda_private_endpoint_id = oci_oda_oda_private_endpoint.TFOdaPrivateEndpoint.id
136+
}
137+
138+
resource "oci_oda_oda_private_endpoint_scan_proxy" "TFOdaPrivateEndpointScanProxy" {
139+
#Required
140+
oda_private_endpoint_id = oci_oda_oda_private_endpoint.TFOdaPrivateEndpoint.id
141+
protocol = var.oda_private_endpoint_scan_proxy_protocol
142+
scan_listener_infos {
143+
#Optional
144+
scan_listener_fqdn = var.oda_private_endpoint_scan_proxy_scan_listener_infos_scan_listener_fqdn
145+
scan_listener_port = var.oda_private_endpoint_scan_proxy_scan_listener_infos_scan_listener_port
146+
}
147+
scan_listener_type = var.oda_private_endpoint_scan_proxy_scan_listener_type
148+
}
149+
150+
data "oci_oda_oda_private_endpoint_scan_proxy" "test_oda_private_endpoint_scan_proxy" {
151+
#Required
152+
oda_private_endpoint_id = oci_oda_oda_private_endpoint.TFOdaPrivateEndpoint.id
153+
oda_private_endpoint_scan_proxy_id = oci_oda_oda_private_endpoint_scan_proxy.TFOdaPrivateEndpointScanProxy.id
154+
}
155+
156+
data "oci_oda_oda_private_endpoint_scan_proxies" "test_oda_private_endpoint_scan_proxies" {
157+
#Required
158+
oda_private_endpoint_id = oci_oda_oda_private_endpoint.TFOdaPrivateEndpoint.id
159+
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
variable "vcn_cidr_block" {
2+
default = "10.0.0.0/25"
3+
}
4+
5+
variable "vcn_display_name" {
6+
default = "vcn_name"
7+
}
8+
9+
variable "vcn_dns_label" {
10+
default = "testvcn"
11+
}
12+
13+
variable "ig_display_name" {
14+
default = "ig_name"
15+
}
16+
17+
variable "rt_display_name" {
18+
default = "rt_name"
19+
}
20+
21+
variable "subnet_cidr_block" {
22+
default = "10.0.0.16/28"
23+
}
24+
25+
variable "subnet_display_name" {
26+
default = "subnet_name"
27+
}
28+
29+
variable "subnet_dns_label" {
30+
default = "test_subnet"
31+
}
32+
33+
variable "security_list_dns_label" {
34+
default = "test_security_list"
35+
}
36+
37+
resource "oci_core_vcn" "pe_vcn" {
38+
cidr_block = var.vcn_cidr_block
39+
compartment_id = var.compartment_ocid
40+
display_name = var.vcn_display_name
41+
dns_label = var.vcn_dns_label
42+
}
43+
44+
resource "oci_core_internet_gateway" "pe_internet_gateway" {
45+
compartment_id = var.vcn_cidr_block
46+
display_name = var.ig_display_name
47+
vcn_id = oci_core_vcn.pe_vcn.id
48+
}
49+
50+
resource "oci_core_route_table" "pe_route_table" {
51+
compartment_id = var.compartment_ocid
52+
vcn_id = oci_core_vcn.pe_vcn.id
53+
display_name = var.rt_display_name
54+
55+
route_rules {
56+
destination = "0.0.0.0/0"
57+
destination_type = "CIDR_BLOCK"
58+
network_entity_id = oci_core_internet_gateway.pe_internet_gateway.id
59+
}
60+
}
61+
62+
resource "oci_core_subnet" "pe_subnet" {
63+
cidr_block = var.subnet_cidr_block
64+
display_name = var.subnet_display_name
65+
dns_label = var.subnet_dns_label
66+
compartment_id = var.compartment_ocid
67+
vcn_id = oci_core_vcn.pe_vcn.id
68+
security_list_ids = ["${oci_core_security_list.pe_security_list.id}"]
69+
route_table_id = ["${oci_core_route_table.pe_route_table.id}"]
70+
prohibit_public_ip_on_vnic = true
71+
}
72+
73+
resource "oci_core_security_list" "pe_security_list" {
74+
compartment_id = var.compartment_ocid
75+
vcn_id = oci_core_vcn.pe_vcn.id
76+
display_name = var.security_list_dns_label
77+
78+
egress_security_rules {
79+
protocol = "all"
80+
destination = "0.0.0.0/0"
81+
stateless = false
82+
}
83+
84+
ingress_security_rules {
85+
protocol = "all"
86+
source = "0.0.0.0/0"
87+
stateless = false
88+
}
89+
}

examples/zips/adm.zip

0 Bytes
Binary file not shown.

examples/zips/aiAnomalyDetection.zip

0 Bytes
Binary file not shown.

examples/zips/aiVision.zip

0 Bytes
Binary file not shown.

examples/zips/always_free.zip

0 Bytes
Binary file not shown.

examples/zips/analytics.zip

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)