Skip to content

Commit a551704

Browse files
authored
Releasing version 4.28.0
Releasing version 4.28.0
2 parents 07ee44e + b288f18 commit a551704

File tree

8,635 files changed

+97103
-73711
lines changed

Some content is hidden

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

8,635 files changed

+97103
-73711
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 4.28.0 (Unreleased)
2+
3+
### Added
4+
- Support API Gateway Request Validation policies
5+
- Support HCX Enterprise Add-on for `OCVP` service
6+
- Support for Dynamic Limits
7+
- Support for Bastion Service
8+
- Support charge for Container Images and Generic Artifacts
9+
- Support for Generic Artifacts Service
10+
- Support Update `DrgAttachment` of types `Virtual_Circuit`, `RPC` and `IPSec`
11+
- Support for E3 Flex Notebooks added to `datascience`
12+
- Support for Non-Rolling patch mode added to `database_maintenance_run_resource`
13+
- Support for update compartment for `oci_core_default_security_list`, `oci_core_default_dhcp_options`, `oci_core_default_route_table`
14+
- Support for Charge for Custom Images in core resource
15+
116
## 4.27.0 (May 19, 2021)
217

318
### Added
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
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+
provider "oci" {
12+
tenancy_ocid = var.tenancy_ocid
13+
user_ocid = var.user_ocid
14+
fingerprint = var.fingerprint
15+
private_key_path = var.private_key_path
16+
region = var.region
17+
}
18+
19+
resource "oci_apigateway_deployment" "test_deployment" {
20+
compartment_id = var.compartment_ocid
21+
gateway_id = oci_apigateway_gateway.test_gateway.id
22+
path_prefix = "/"
23+
24+
specification {
25+
# An example route making use of a request validation policy
26+
# requiring a header parameter.
27+
routes {
28+
path = "/no-tracking"
29+
methods = ["GET", "HEAD"]
30+
31+
backend {
32+
type = "STOCK_RESPONSE_BACKEND"
33+
status = 200
34+
body = "Hello World"
35+
}
36+
37+
request_policies {
38+
header_validations {
39+
headers {
40+
name = "DNT"
41+
required = true
42+
}
43+
44+
headers {
45+
name = "X-Request-ID"
46+
required = false
47+
}
48+
}
49+
}
50+
}
51+
52+
# An example route making use of a request validation policy
53+
# requiring a query parameter.
54+
routes {
55+
path = "/authorize"
56+
methods = ["GET", "HEAD"]
57+
58+
backend {
59+
type = "STOCK_RESPONSE_BACKEND"
60+
status = 200
61+
body = "Hello World"
62+
}
63+
64+
request_policies {
65+
query_parameter_validations {
66+
parameters {
67+
name = "client_id"
68+
required = true
69+
}
70+
71+
parameters {
72+
name = "client_secret"
73+
required = false
74+
}
75+
}
76+
}
77+
}
78+
79+
# An example route making use of a request validation policy
80+
# requiring a JSON or XML request body in permissive mode.
81+
routes {
82+
path = "/users"
83+
methods = ["POST"]
84+
85+
backend {
86+
type = "STOCK_RESPONSE_BACKEND"
87+
status = 201
88+
body = "User Created"
89+
}
90+
91+
request_policies {
92+
body_validation {
93+
validation_mode = "PERMISSIVE"
94+
95+
required = true
96+
97+
content {
98+
media_type = "application/json"
99+
validation_type = "NONE"
100+
}
101+
102+
content {
103+
media_type = "application/xml"
104+
validation_type = "NONE"
105+
}
106+
}
107+
}
108+
}
109+
}
110+
}
111+
112+
resource "oci_apigateway_gateway" "test_gateway" {
113+
compartment_id = var.compartment_ocid
114+
endpoint_type = "PUBLIC"
115+
subnet_id = oci_core_subnet.regional_subnet.id
116+
}
117+
118+
resource "oci_core_vcn" "vcn1" {
119+
cidr_block = "10.0.0.0/16"
120+
compartment_id = var.compartment_ocid
121+
display_name = "exampleVCN"
122+
dns_label = "tfexamplevcn"
123+
}
124+
125+
resource "oci_core_subnet" "regional_subnet" {
126+
cidr_block = "10.0.1.0/24"
127+
display_name = "regionalSubnet"
128+
dns_label = "regionalsubnet"
129+
compartment_id = var.compartment_ocid
130+
vcn_id = oci_core_vcn.vcn1.id
131+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
provider "oci" {
12+
tenancy_ocid = var.tenancy_ocid
13+
user_ocid = var.user_ocid
14+
fingerprint = var.fingerprint
15+
private_key_path = var.private_key_path
16+
region = var.region
17+
}
18+
19+
resource "oci_artifacts_repository" "test_repository" {
20+
#Required
21+
compartment_id = var.compartment_id
22+
is_immutable = false
23+
repository_type = "GENERIC"
24+
}
25+
26+
resource "oci_generic_artifacts_content_artifact_by_path" "test_artifact" {
27+
#Required
28+
artifact_path = "artifact_path"
29+
repository_id = oci_artifacts_repository.test_repository.id
30+
version = "1.0"
31+
content = "<a1>content</a1>"
32+
}
33+
34+
resource "oci_artifacts_generic_artifact" "test_generic_artifact" {
35+
artifact_id = oci_generic_artifacts_content_artifact_by_path.test_artifact.id
36+
}
37+
38+
data "oci_artifacts_repositories" "test_repositories" {
39+
#Required
40+
compartment_id = var.compartment_id
41+
state = "AVAILABLE"
42+
}
43+

examples/bastion/bastion.tf

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
// Copyright (c) 2017, 2020, 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+
variable "bastion_bastion_lifecycle_state" {
12+
default = "ACTIVE"
13+
}
14+
15+
variable "bastion_client_cidr_block_allow_list" {
16+
default = ["0.0.0.0/0"]
17+
}
18+
19+
variable "bastion_defined_tags_value" {
20+
default = "value"
21+
}
22+
23+
variable "bastion_name" {
24+
default = "bastionExample"
25+
}
26+
27+
variable "bastion_freeform_tags" {
28+
default = {
29+
"bar-key" = "bastion_test"
30+
}
31+
}
32+
33+
variable "bastion_max_session_ttl_in_seconds" {
34+
default = 1800
35+
}
36+
37+
variable "tag_namespace_description" {
38+
default = "Just a test"
39+
}
40+
41+
variable "tag_namespace_name" {
42+
default = "testexamples-tag-namespace"
43+
}
44+
45+
46+
provider "oci" {
47+
tenancy_ocid = var.tenancy_ocid
48+
user_ocid = var.user_ocid
49+
fingerprint = var.fingerprint
50+
private_key_path = var.private_key_path
51+
region = var.region
52+
}
53+
54+
resource "oci_bastion_bastion" "test_bastion" {
55+
#Required
56+
bastion_type = "STANDARD"
57+
compartment_id = var.compartment_ocid
58+
target_subnet_id = oci_core_subnet.test_subnet.id
59+
60+
#Optional
61+
client_cidr_block_allow_list = var.bastion_client_cidr_block_allow_list
62+
defined_tags = {
63+
"${oci_identity_tag_namespace.bastion_tag_namespace1.name}.${oci_identity_tag.bastion_tag1.name}" = var.bastion_defined_tags_value
64+
}
65+
name = var.bastion_name
66+
freeform_tags = var.bastion_freeform_tags
67+
max_session_ttl_in_seconds = var.bastion_max_session_ttl_in_seconds
68+
}
69+
70+
data "oci_bastion_bastions" "test_bastions" {
71+
#Required
72+
compartment_id = var.compartment_ocid
73+
74+
#Optional
75+
bastion_id = oci_bastion_bastion.test_bastion.id
76+
bastion_lifecycle_state = var.bastion_bastion_lifecycle_state
77+
name = var.bastion_name
78+
}
79+
80+
data "oci_core_services" "test_bastion_services" {
81+
}
82+
83+
data "oci_identity_availability_domain" "bastion_ad" {
84+
compartment_id = var.tenancy_ocid
85+
ad_number = 1
86+
}

examples/bastion/instance.tf

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
variable instance_image_ocid {
2+
type = map(string)
3+
default = {
4+
// See https://docs.us-phoenix-1.oraclecloud.com/images/
5+
// Oracle-provided image "Oracle-Linux-7.9-2021.04.09-0"
6+
us-phoenix-1 = "ocid1.image.oc1.phx.aaaaaaaanj7qmui2ux5hbiwtbtkzajuvvhuzo2y7755stim22ue6msqwv2ja"
7+
us-ashburn-1 = "ocid1.image.oc1.iad.aaaaaaaaw2wavtqrd3ynbrzabcnrs77pinccp55j2gqitjrrj2vf65sqj5kq"
8+
}
9+
}
10+
11+
resource "oci_core_instance" "test_instance" {
12+
availability_domain = data.oci_identity_availability_domain.bastion_ad.name
13+
compartment_id = var.compartment_ocid
14+
display_name = "TestInstance"
15+
shape = "VM.Standard1.1"
16+
17+
agent_config {
18+
are_all_plugins_disabled = false
19+
is_management_disabled = false
20+
is_monitoring_disabled = false
21+
plugins_config {
22+
desired_state = "ENABLED"
23+
name = "Bastion"
24+
}
25+
}
26+
27+
create_vnic_details {
28+
subnet_id = oci_core_subnet.test_subnet.id
29+
display_name = "Primaryvnic"
30+
assign_public_ip = true
31+
hostname_label = "testinstance"
32+
}
33+
34+
source_details {
35+
source_type = "image"
36+
source_id = var.instance_image_ocid[var.region]
37+
}
38+
39+
metadata = {
40+
ssh_authorized_keys = var.session_key_details_public_key_content
41+
}
42+
43+
timeouts {
44+
create = "60m"
45+
}
46+
}

examples/bastion/network.tf

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
resource "oci_core_vcn" "test_bastion_vcn" {
2+
cidr_block = "10.1.0.0/16"
3+
compartment_id = var.compartment_ocid
4+
display_name = "TestVcn"
5+
dns_label = "testvcn"
6+
}
7+
8+
resource "oci_core_service_gateway" "test_bastion_service_gateway" {
9+
compartment_id = var.compartment_ocid
10+
display_name = "sgw"
11+
12+
services {
13+
service_id = data.oci_core_services.test_bastion_services.services[1]["id"]
14+
}
15+
16+
vcn_id = oci_core_vcn.test_bastion_vcn.id
17+
}
18+
19+
resource "oci_core_default_route_table" "bastion_default_route_table" {
20+
manage_default_resource_id = oci_core_vcn.test_bastion_vcn.default_route_table_id
21+
display_name = "DefaultRouteTable"
22+
23+
route_rules {
24+
destination = lookup(data.oci_core_services.test_bastion_services.services[1], "cidr_block")
25+
destination_type = "SERVICE_CIDR_BLOCK"
26+
network_entity_id = oci_core_service_gateway.test_bastion_service_gateway.id
27+
}
28+
}
29+
30+
resource "oci_core_subnet" "test_subnet" {
31+
availability_domain = data.oci_identity_availability_domain.bastion_ad.name
32+
cidr_block = "10.1.20.0/24"
33+
display_name = "TestSubnet"
34+
dns_label = "testsubnet"
35+
security_list_ids = [oci_core_vcn.test_bastion_vcn.default_security_list_id]
36+
compartment_id = var.compartment_ocid
37+
vcn_id = oci_core_vcn.test_bastion_vcn.id
38+
route_table_id = oci_core_vcn.test_bastion_vcn.default_route_table_id
39+
dhcp_options_id = oci_core_vcn.test_bastion_vcn.default_dhcp_options_id
40+
}

0 commit comments

Comments
 (0)