Skip to content

Commit a949b5e

Browse files
Releasing version 4.19.0
Releasing version 4.19.0
2 parents 91175ca + 846e71b commit a949b5e

File tree

7,652 files changed

+95977
-64815
lines changed

Some content is hidden

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

7,652 files changed

+95977
-64815
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 4.19.0 (Unreleased)
2+
3+
### Added
4+
- Support for Maintenance Windows History in `database`
5+
- Support save report in cost analysis
6+
- Support for Capacity Reservations
7+
- Support for Renaming Analytics Service to HeatWave
8+
- Support for Marketplace-Community Catalog
9+
- Support for Network Load Balancer
10+
11+
### Fixed
12+
- Doc update for `image_digest` and `image` fields in `functions` resource
13+
114
## 4.18.0 (March 17, 2021)
215

316
### Added

GNUmakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ TEST?=./...
44
GOFMT_FILES?=$(if $(SERVICE), $$(find . -name '$(SERVICE)*.go' |grep -v vendor), $$(find . -name '*.go' |grep -v vendor))
55
PKG_NAME=oci
66
WEBSITE_REPO=github.com/hashicorp/terraform-website
7+
release_date=$(shell date -v +5d +%F)
78

89
prefix := $(if $(debug),TF_LOG=DEBUG OCI_GO_SDK_DEBUG=v, )
910
timeout := $(if $(timeout), $(timeout), 120m)
@@ -99,6 +100,7 @@ get: ;go get golang.org/x/tools/cmd/goimports; go get github.com/mitchellh/gox
99100
### `make update-version version=2.0.1`
100101
update-version:
101102
ifdef version
103+
sed -i -e 's/ReleaseDate = ".*"/ReleaseDate = "$(release_date)"/g' oci/version.go
102104
sed -i -e 's/Version = ".*"/Version = "$(version)"/g' oci/version.go && rm -f oci/version.go-e
103105
else
104106
@echo Err! `make update-version` requires a version argument
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
provider "oci" {
2+
region = var.region
3+
tenancy_ocid = var.tenancy_ocid
4+
user_ocid = var.user_ocid
5+
fingerprint = var.fingerprint
6+
private_key_path = var.private_key_path
7+
retry_duration_seconds = "1800"
8+
}
9+
10+
data "oci_identity_availability_domain" "ad" {
11+
compartment_id = var.tenancy_ocid
12+
ad_number = 1
13+
}
14+
15+
resource "oci_core_vcn" "test_vcn" {
16+
cidr_block = "10.1.0.0/16"
17+
compartment_id = var.compartment_ocid
18+
display_name = "TestVcn"
19+
dns_label = "testvcn"
20+
}
21+
22+
resource "oci_core_internet_gateway" "test_internet_gateway" {
23+
compartment_id = var.compartment_ocid
24+
display_name = "TestInternetGateway"
25+
vcn_id = oci_core_vcn.test_vcn.id
26+
}
27+
28+
resource "oci_core_default_route_table" "default_route_table" {
29+
manage_default_resource_id = oci_core_vcn.test_vcn.default_route_table_id
30+
display_name = "DefaultRouteTable"
31+
32+
route_rules {
33+
destination = "0.0.0.0/0"
34+
destination_type = "CIDR_BLOCK"
35+
network_entity_id = oci_core_internet_gateway.test_internet_gateway.id
36+
}
37+
}
38+
39+
resource "oci_core_subnet" "test_subnet" {
40+
availability_domain = data.oci_identity_availability_domain.ad.name
41+
cidr_block = "10.1.20.0/24"
42+
display_name = "TestSubnet"
43+
dns_label = "testsubnet"
44+
security_list_ids = [oci_core_vcn.test_vcn.default_security_list_id]
45+
compartment_id = var.compartment_ocid
46+
vcn_id = oci_core_vcn.test_vcn.id
47+
route_table_id = oci_core_vcn.test_vcn.default_route_table_id
48+
dhcp_options_id = oci_core_vcn.test_vcn.default_dhcp_options_id
49+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
3+
resource "oci_core_compute_capacity_reservation" "cr" {
4+
availability_domain = data.oci_identity_availability_domain.ad.name
5+
compartment_id = var.compartment_ocid
6+
instance_reservation_configs {
7+
instance_shape = var.instance_shape
8+
reserved_count = var.instance_count
9+
}
10+
}
11+
12+
resource "oci_core_instance" "test_instance" {
13+
count = var.instance_count
14+
availability_domain = data.oci_identity_availability_domain.ad.name
15+
compartment_id = var.compartment_ocid
16+
capacity_reservation_id = oci_core_compute_capacity_reservation.cr.id
17+
display_name = "${var.instance_name_prefix}${count.index}"
18+
shape = var.instance_shape
19+
create_vnic_details {
20+
assign_public_ip = false
21+
subnet_id = oci_core_subnet.test_subnet.id
22+
}
23+
source_details {
24+
source_type = "image"
25+
source_id = var.instance_image_ocid[var.region]
26+
}
27+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Modify these to reflect your account
2+
user_ocid = "ocid1.user.oc1..123456789abcdf0123456789abcdf0123456789abcdf0123456789abcdf0"
3+
private_key_path = "/home/opc/.oci/oci_api_key.pem"
4+
private_key_fingerprint = "12:34:56:78:9a:bc:de:f0:12:34:56:78:9a:bc:de:f0"
5+
6+
tenancy_ocid = "ocid1.tenancy.oc1..123456789abcdf0123456789abcdf0123456789abcdf0123456789abcdf0"
7+
availability_domain = "aBcD:PHX-AD-1"
8+
compartment_id = "ocid1.tenancy.oc1..123456789abcdf0123456789abcdf0123456789abcdf0123456789abcdf0"
9+
10+
subnet_id = "ocid1.subnet.oc1.phx.123456789abcdf0123456789abcdf0123456789abcdf0123456789abcdf0"
11+
12+
# Modify these to adjust the scale of the test
13+
instance_count = "1"
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
## Required connection credentials ##
2+
variable "user_ocid" {
3+
description = "user OCID for the user account with which to connect to the API."
4+
}
5+
6+
variable "private_key_path" {
7+
description = "full file path of the private key to use for API access with the user account. Does not support environment variables or ~ to abbreviate a user's home directory."
8+
}
9+
10+
variable "fingerprint" {
11+
description = "PEM fingerprint for private key."
12+
}
13+
14+
variable "tenancy_ocid" {
15+
description = "tenancy OCID in which to launch instances."
16+
}
17+
18+
variable "compartment_ocid" {
19+
description = "compartment OCID in which to launch instances."
20+
}
21+
22+
## Optional parameters ##
23+
variable "instance_count" {
24+
description = "number of instances to launch."
25+
default = "1"
26+
}
27+
28+
variable "instance_name_prefix" {
29+
default = "capacity_reservation_"
30+
}
31+
32+
variable "region" {
33+
description = "region in which to launch instances."
34+
default = "us-phoenix-1"
35+
}
36+
37+
# variable "image" {
38+
# description = "image OCID to launch instances from. This will be unique per region. This default is for region: us-phoenix-1."
39+
# default = "ocid1.image.oc1.phx.aaaaaaaapxvrtwbpgy3lchk2usn462ekarljwg4zou2acmundxlkzdty4bjq"
40+
# }
41+
variable "instance_image_ocid" {
42+
type = map(string)
43+
44+
default = {
45+
# See https://docs.us-phoenix-1.oraclecloud.com/images/
46+
# Oracle-provided image "Oracle-Linux-7.5-2018.10.16-0"
47+
us-phoenix-1 = "ocid1.image.oc1.phx.aaaaaaaaoqj42sokaoh42l76wsyhn3k2beuntrh5maj3gmgmzeyr55zzrwwa"
48+
us-ashburn-1 = "ocid1.image.oc1.iad.aaaaaaaageeenzyuxgia726xur4ztaoxbxyjlxogdhreu3ngfj2gji3bayda"
49+
eu-frankfurt-1 = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaaitzn6tdyjer7jl34h2ujz74jwy5nkbukbh55ekp6oyzwrtfa4zma"
50+
uk-london-1 = "ocid1.image.oc1.uk-london-1.aaaaaaaa32voyikkkzfxyo4xbdmadc2dmvorfxxgdhpnk6dw64fa3l4jh7wa"
51+
}
52+
}
53+
54+
variable "instance_shape" {
55+
default = "VM.Standard2.1"
56+
}

examples/database/db_systems/db_exacs/resources.tf

Lines changed: 2 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -49,74 +49,8 @@ resource "oci_database_db_home" "test_db_home_vm_cluster" {
4949
display_name = "createdDbHome"
5050
}
5151

52-
resource "oci_database_db_system" "test_db_system" {
53-
availability_domain = data.oci_identity_availability_domain.ad.name
54-
compartment_id = var.compartment_ocid
55-
cpu_core_count = "22"
56-
database_edition = var.db_edition
57-
58-
db_home {
59-
database {
60-
admin_password = var.db_admin_password
61-
db_name = "TFdb1Exa"
62-
character_set = var.character_set
63-
ncharacter_set = var.n_character_set
64-
db_workload = var.db_workload
65-
pdb_name = var.pdb_name
66-
67-
db_backup_config {
68-
auto_backup_enabled = false
69-
}
70-
}
71-
72-
db_version = "12.1.0.2"
73-
display_name = "MyTFDBHome1Exa"
74-
}
75-
76-
maintenance_window_details {
77-
preference = "CUSTOM_PREFERENCE"
78-
79-
days_of_week {
80-
name = "MONDAY"
81-
}
82-
83-
hours_of_day = ["4"]
84-
lead_time_in_weeks = 2
85-
86-
months {
87-
name = "APRIL"
88-
}
89-
90-
weeks_of_month = ["2"]
91-
}
92-
93-
disk_redundancy = var.db_disk_redundancy
94-
shape = var.db_system_shape
95-
subnet_id = oci_core_subnet.subnet.id
96-
backup_subnet_id = oci_core_subnet.subnet_backup.id
97-
ssh_public_keys = [var.ssh_public_key]
98-
display_name = var.db_system_display_name
99-
sparse_diskgroup = var.sparse_diskgroup
100-
101-
hostname = var.hostname
102-
data_storage_percentage = var.data_storage_percentage
103-
104-
#data_storage_size_in_gb = var.data_storage_size_in_gb
105-
license_model = var.license_model
106-
node_count = lookup(data.oci_database_db_system_shapes.test_db_system_shapes.db_system_shapes[0], "minimum_node_count")
107-
backup_network_nsg_ids = [oci_core_network_security_group.test_network_security_group.id]
108-
nsg_ids = [oci_core_network_security_group.test_network_security_group_backup.id, oci_core_network_security_group.test_network_security_group.id]
109-
110-
#To use defined_tags, set the values below to an existing tag namespace, refer to the identity example on how to create tag namespaces
111-
#defined_tags = map("example-tag-namespace-all.example-tag", "originalValue")
112-
113-
freeform_tags = {
114-
"Department" = "Finance"
115-
}
116-
}
117-
11852
resource "oci_database_backup" "test_backup" {
119-
depends_on = ["oci_database_db_system.test_db_system"]
120-
database_id = oci_database_db_system.test_db_system.db_home.0.database.0.id
53+
depends_on = ["oci_database_db_home.test_db_home_vm_cluster"]
54+
database_id = oci_database_db_home.test_db_home_vm_cluster.database.id
12155
display_name = "FirstBackup"
12256
}

examples/goldengate/Deployment/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ data "oci_objectstorage_namespace" "test_namespace" {
197197

198198
data "oci_golden_gate_deployments" "test_deployments" {
199199
#Required
200-
compartment_id = var.compartment_id
200+
compartment_id = var.compartment_ocid
201201

202202
#Optional
203203
display_name = var.deployment_display_name

0 commit comments

Comments
 (0)