Skip to content

Commit 5013479

Browse files
Merge pull request #1601 from oracle/release_gh
Releasing version 4.77.0
2 parents 43a9526 + c8941e0 commit 5013479

File tree

398 files changed

+39689
-539
lines changed

Some content is hidden

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

398 files changed

+39689
-539
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 4.77.0 (May 25, 2022)
2+
3+
### Added
4+
- Support for customer managed encryption keys in Oracle Analytics Cloud
5+
- Increase lsInventory size when creating db software image for VMBM.
6+
- Support for Oracle Linux 8 Application Streams to the OS Management Service
7+
- Supporting Usage plan and Subscriber in API Gateway
8+
### Bug Fix
9+
- Fix defaults and backwards compatibility tests
10+
- Fix for configurationId and dataStorageSizeGB update in DbSystem
11+
112
## 4.76.0 (May 19, 2022)
213

314
### Added

examples/analytics/main.tf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
22
// Licensed under the Mozilla Public License v2.0
33

4+
45
// These variables would commonly be defined as environment variables or sourced in a .env file
56
variable "tenancy_ocid" {
67
}
@@ -23,6 +24,8 @@ variable "region" {
2324
variable "idcs_access_token" {
2425
}
2526

27+
variable "kms_key_id" {
28+
}
2629

2730
provider "oci" {
2831
region = var.region
@@ -35,7 +38,7 @@ provider "oci" {
3538
resource "oci_analytics_analytics_instance" "test_oce_instance_public" {
3639
compartment_id = var.compartment_ocid
3740
description = "OAC instance"
38-
// email_notification = var.email_notification
41+
email_notification = var.email_notification
3942
feature_set = "ENTERPRISE_ANALYTICS"
4043
license_type = "LICENSE_INCLUDED"
4144

@@ -65,13 +68,16 @@ resource "oci_analytics_analytics_instance" "test_oce_instance_public" {
6568
whitelisted_ips = [oci_core_vcn.test_vcn.cidr_block]
6669
}
6770
}
71+
72+
# Optionally specify a master encryption key for analytics metadata.
73+
kms_key_id = var.kms_key_id
6874
}
6975

7076
# Create a private access channel for the instance
7177
resource "oci_analytics_analytics_instance_private_access_channel" "test_private_access_channel" {
7278
#Required
7379
analytics_instance_id = oci_analytics_analytics_instance.test_oce_instance_public.id
74-
display_name = "Example Private Access Channel"
80+
display_name = "ExamplePAC"
7581
subnet_id = oci_core_subnet.test_subnet.id
7682
vcn_id = oci_core_vcn.test_vcn.id
7783
private_source_dns_zones {
@@ -81,14 +87,14 @@ resource "oci_analytics_analytics_instance_private_access_channel" "test_private
8187
}
8288

8389
# Create a vanity url for the instance
84-
resource "oci_analytics_analytics_instances_vanity_url" "test_analytics_instances_vanity_url" {
90+
resource "oci_analytics_analytics_instance_vanity_url" "test_analytics_instances_vanity_url" {
8591
#Required
8692
analytics_instance_id = oci_analytics_analytics_instance.test_oce_instance_public.id
8793
ca_certificate = file("/path/to/the/file/RootCA.crt")
88-
hosts = ["analyticsdev"]
94+
hosts = ["analyticsdev.mycompany.com"]
8995
private_key = file("/path/to/the/file/analyticsdevCA.key")
9096
public_certificate = file("/path/to/the/file/analyticsdevCA.crt")
91-
97+
9298
#Optional
9399
description = "description"
94100
# passphrase is required if the private key was created with a passphrase

examples/api_gateway/gateway/main.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ provider "oci" {
5757
fingerprint = var.fingerprint
5858
private_key_path = var.private_key_path
5959
region = var.region
60-
version = "4.22.0"
6160
}
6261

6362
resource "oci_core_subnet" "regional_subnet" {
@@ -115,7 +114,6 @@ data "oci_apigateway_gateways" "test_gateways" {
115114
compartment_id = var.compartment_ocid
116115

117116
#Optional
118-
id = oci_apigateway_gateway.test_gateway.id
119117
state = var.gateway_state
120118
}
121119

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
12+
provider "oci" {
13+
tenancy_ocid = var.tenancy_ocid
14+
user_ocid = var.user_ocid
15+
fingerprint = var.fingerprint
16+
private_key_path = var.private_key_path
17+
region = var.region
18+
}
19+
20+
resource "oci_apigateway_usage_plan" "test_usage_plan" {
21+
compartment_id = var.compartment_ocid
22+
entitlements {
23+
name = "name"
24+
}
25+
}
26+
27+
resource "oci_apigateway_subscriber" "test_subscriber" {
28+
#Required
29+
clients {
30+
#Required
31+
name = "subscriber_clients_name"
32+
token = "subscriber_clients_token"
33+
}
34+
compartment_id = var.compartment_ocid
35+
usage_plans = [oci_apigateway_usage_plan.test_usage_plan.id]
36+
37+
#Optional
38+
display_name = "subscriber_display_name"
39+
freeform_tags = { "Department" = "Finance" }
40+
}
41+
42+
data "oci_apigateway_subscribers" "test_subscribers" {
43+
#Required
44+
compartment_id = var.compartment_ocid
45+
46+
#Optional
47+
display_name = "subscriber_display_name"
48+
state = "ACTIVE"
49+
}
50+
51+
data "oci_apigateway_subscriber" "test_subscriber" {
52+
#Required
53+
subscriber_id = oci_apigateway_subscriber.test_subscriber.id
54+
}
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
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+
12+
provider "oci" {
13+
tenancy_ocid = var.tenancy_ocid
14+
user_ocid = var.user_ocid
15+
fingerprint = var.fingerprint
16+
private_key_path = var.private_key_path
17+
region = var.region
18+
}
19+
20+
resource "oci_apigateway_gateway" "test_gateway" {
21+
compartment_id = var.compartment_ocid
22+
endpoint_type = "PUBLIC"
23+
subnet_id = oci_core_subnet.regional_subnet.id
24+
}
25+
26+
resource "oci_core_vcn" "vcn1" {
27+
cidr_block = "10.0.0.0/16"
28+
compartment_id = var.compartment_ocid
29+
display_name = "exampleVCN"
30+
dns_label = "tfexamplevcn"
31+
}
32+
33+
resource "oci_core_subnet" "regional_subnet" {
34+
cidr_block = "10.0.1.0/24"
35+
display_name = "regionalSubnet"
36+
dns_label = "regionalsubnet"
37+
compartment_id = var.compartment_ocid
38+
vcn_id = oci_core_vcn.vcn1.id
39+
}
40+
41+
resource "oci_apigateway_deployment" "test_deployment" {
42+
compartment_id = var.compartment_ocid
43+
gateway_id = oci_apigateway_gateway.test_gateway.id
44+
path_prefix = "/"
45+
46+
specification {
47+
request_policies {
48+
#Optional
49+
usage_plans {
50+
#Required
51+
token_locations = ["request.headers[apiKeyLocation]"]
52+
}
53+
}
54+
routes {
55+
backend {
56+
type = "HTTP_BACKEND"
57+
url = "https://api.weather.gov"
58+
}
59+
path = "/hello"
60+
methods = ["GET"]
61+
}
62+
}
63+
}
64+
65+
resource "oci_apigateway_usage_plan" "test_usage_plan" {
66+
#Required
67+
compartment_id = var.compartment_ocid
68+
entitlements {
69+
#Required
70+
name = "usagePlanEntitlementsName"
71+
72+
#Optional
73+
description = "usage_plan_entitlements_description"
74+
quota {
75+
#Required
76+
operation_on_breach = "REJECT"
77+
reset_policy = "CALENDAR"
78+
unit = "MINUTE"
79+
value = 10
80+
}
81+
rate_limit {
82+
#Required
83+
unit = "SECOND"
84+
value = 10
85+
}
86+
targets {
87+
#Required
88+
deployment_id = oci_apigateway_deployment.test_deployment.id
89+
}
90+
}
91+
92+
#Optional
93+
display_name = "usage_plan_display_name"
94+
freeform_tags = { "Department" = "Finance" }
95+
}
96+
97+
data "oci_apigateway_usage_plans" "test_usage_plans" {
98+
#Required
99+
compartment_id = var.compartment_ocid
100+
101+
#Optional
102+
display_name = "usage_plan_display_name"
103+
state = "ACTIVE"
104+
}
105+
106+
data "oci_apigateway_usage_plan" "test_usage_plan" {
107+
#Required
108+
usage_plan_id = oci_apigateway_usage_plan.test_usage_plan.id
109+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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_id" {}
10+
11+
variable "managed_instance_id" {
12+
}
13+
14+
variable "managed_instance_module_name" {
15+
}
16+
17+
variable "managed_instance_stream_name" {
18+
}
19+
20+
variable "managed_instance_stream_status" {
21+
default = "ENABLED"
22+
}
23+
24+
25+
provider "oci" {
26+
tenancy_ocid = var.tenancy_ocid
27+
user_ocid = var.user_ocid
28+
fingerprint = var.fingerprint
29+
private_key_path = var.private_key_path
30+
region = var.region
31+
}
32+
33+
data "oci_osmanagement_managed_instance_module_streams" "test_managed_instance_module_streams" {
34+
#Required
35+
managed_instance_id = var.managed_instance_id
36+
37+
#Optional
38+
compartment_id = var.compartment_id
39+
module_name = var.managed_instance_module_name
40+
stream_name = var.managed_instance_stream_name
41+
stream_status = var.managed_instance_stream_status
42+
}
43+
44+
output "test_managed_instance_module_streams" {
45+
value = {
46+
module_streams_on_managed_instance = data.oci_osmanagement_managed_instance_module_streams.test_managed_instance_module_streams.module_stream_on_managed_instances
47+
}
48+
}
49+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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_id" {}
10+
11+
variable "managed_instance_id" {
12+
}
13+
14+
variable "managed_instance_module_name" {
15+
}
16+
17+
variable "managed_instance_module_stream_name" {
18+
}
19+
20+
variable "managed_instance_module_stream_profile_name" {
21+
}
22+
23+
variable "managed_instance_profile_status" {
24+
default = "INSTALLED"
25+
}
26+
27+
28+
provider "oci" {
29+
tenancy_ocid = var.tenancy_ocid
30+
user_ocid = var.user_ocid
31+
fingerprint = var.fingerprint
32+
private_key_path = var.private_key_path
33+
region = var.region
34+
}
35+
36+
data "oci_osmanagement_managed_instance_stream_profiles" "test_managed_instance_stream_profiles" {
37+
#Required
38+
managed_instance_id = var.managed_instance_id
39+
40+
#Optional
41+
compartment_id = var.compartment_id
42+
module_name = var.managed_instance_module_name
43+
profile_name = var.managed_instance_module_stream_profile_name
44+
profile_status = var.managed_instance_profile_status
45+
stream_name = var.managed_instance_module_stream_name
46+
}
47+
48+
output "test_managed_instance_stream_profiles" {
49+
value = {
50+
module_stream_profiles_on_managed_instance = data.oci_osmanagement_managed_instance_stream_profiles.test_managed_instance_stream_profiles.module_stream_profile_on_managed_instances
51+
}
52+
}
53+

0 commit comments

Comments
 (0)