Skip to content

Commit a9a44cb

Browse files
authored
Releasing version v5.0.0
2 parents 2c8f1a4 + af96ed4 commit a9a44cb

File tree

4,960 files changed

+7465
-6089
lines changed

Some content is hidden

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

4,960 files changed

+7465
-6089
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 5.0.0 (June 06, 2023)
2+
3+
### Added
4+
- Support for Capacity Availability API
5+
- Support for Datalake/Lakehouse Feature for MySQL HeatWave
6+
- Support for Bulk include/exclude of migration objects enhancement. DatabaseMigration service
7+
- Support for region override in resource principal
8+
- Changes to README.md, License.txt, security.md and CONTRIBUTING.md for Github Audit Compliance.
9+
### Deprecation
10+
- Removed oci_identity_swift_password resource and datasource
11+
112
## 4.123.0 (May 31, 2023)
213

314
### Added

CONTRIBUTING.md

Lines changed: 46 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,57 @@
1-
# Contributing to the Terraform provider for Oracle Cloud Infrastructure
1+
# Contributing to this repository
22

33
*Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.*
44

5-
Pull requests can be made under
6-
[The Oracle Contributor Agreement](https://oca.opensource.oracle.com/)
7-
(OCA).
5+
We welcome your contributions! There are multiple ways to contribute.
86

9-
For pull requests to be accepted, the bottom of
10-
your commit message must have the following line using your name and
11-
e-mail address as it appears in the OCA Signatories list.
7+
## Opening issues
128

13-
```
9+
For bugs or enhancement requests, please file a GitHub issue unless it's
10+
security related. When filing a bug remember that the better written the bug is,
11+
the more likely it is to be fixed. If you think you've found a security
12+
vulnerability, do not raise a GitHub issue and follow the instructions in our
13+
[security policy](./SECURITY.md).
14+
15+
## Contributing code
16+
17+
We welcome your code contributions. Before submitting code via a pull request,
18+
you will need to have signed the [Oracle Contributor Agreement][OCA] (OCA) and
19+
your commits need to include the following line using the name and e-mail
20+
address you used to sign the OCA:
21+
22+
```text
1423
Signed-off-by: Your Name <[email protected]>
1524
```
1625

17-
This can be automatically added to pull requests by committing with:
26+
This can be automatically added to pull requests by committing with `--sign-off`
27+
or `-s`, e.g.
1828

19-
```
29+
```text
2030
git commit --signoff
21-
````
31+
```
32+
33+
Only pull requests from committers that can be verified as having signed the OCA
34+
can be accepted.
35+
36+
## Pull request process
37+
38+
1. Ensure there is an issue created to track and discuss the fix or enhancement
39+
you intend to submit.
40+
1. Fork this repository.
41+
1. Create a branch in your fork to implement the changes. We recommend using
42+
the issue number as part of your branch name, e.g. `1234-fixes`.
43+
1. Ensure that any documentation is updated with the changes that are required
44+
by your change.
45+
1. Ensure that any samples are updated if the base image has been changed.
46+
1. Submit the pull request. *Do not leave the pull request blank*. Explain exactly
47+
what your changes are meant to do and provide simple steps on how to validate.
48+
your changes. Ensure that you reference the issue you created as well.
49+
1. We will assign the pull request to 2-3 people for review before it is merged.
50+
51+
## Code of conduct
52+
53+
Follow the [Golden Rule](https://en.wikipedia.org/wiki/Golden_Rule). If you'd
54+
like more specific guidelines, see the [Contributor Covenant Code of Conduct][COC].
2255

23-
Only pull requests from committers that can be verified as having
24-
signed the OCA can be accepted.
56+
[OCA]: https://oca.opensource.oracle.com
57+
[COC]: https://www.contributor-covenant.org/version/1/4/code-of-conduct/
File renamed without changes.

README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
## NOTICE
2-
**The OCI Terraform Provider is now available for automatic download through the Terraform Provider Registry.
3-
For more information on how to get started view the [documentation](https://www.terraform.io/docs/providers/oci/index.html)
4-
and [setup guide](https://www.terraform.io/docs/providers/oci/guides/version-3-upgrade.html).**
1+
# Terraform Provider for Oracle Cloud Infrastructure
52

6-
7-
Terraform Provider for Oracle Cloud Infrastructure
8-
==================
3+
**The OCI Terraform Provider is now available for automatic download through the Terraform Provider Registry.**
94

105
- [Documentation](https://www.terraform.io/docs/providers/oci/index.html)
6+
- [Setup guide](https://www.terraform.io/docs/providers/oci/guides/version-3-upgrade.html)
117
- [Examples](https://github.com/oracle/terraform-provider-oci/tree/master/examples)
128
- [OCI forums](https://cloudcustomerconnect.oracle.com/resources/9c8fa8f96f/summary)
139
- [Github issues](https://github.com/oracle/terraform-provider-oci/issues)
@@ -16,15 +12,13 @@ Terraform Provider for Oracle Cloud Infrastructure
1612
[![wercker status](https://app.wercker.com/status/666d2ee10f45dde41189bb03248aadf9/s/master "wercker status")](https://app.wercker.com/project/byKey/666d2ee10f45dde41189bb03248aadf9)
1713

1814

19-
Requirements
20-
------------
15+
## Requirements
2116

2217
- [Terraform](https://www.terraform.io/downloads.html) v0.12.31 or greater
2318
- [Go](https://golang.org/doc/install) 1.18.8 (recommended)
2419

2520

26-
Building the Provider
27-
---------------------
21+
## Building the Provider
2822

2923
Clone repository to: `$GOPATH/src/terraform-provider-oci`
3024

@@ -41,19 +35,17 @@ $ make build
4135
```
4236

4337

44-
Using the Provider
45-
----------------------
38+
## Installation
39+
4640
If you're building the provider, follow the instructions to [install it as a plugin.](https://www.terraform.io/docs/plugins/basics.html#installing-a-plugin)
4741
After placing it into your plugins directory, run `terraform init` to initialize it and begin using Terraform with the Oracle Cloud Infrastructure provider.
4842

4943

50-
Troubleshooting the Provider
51-
----------------------
44+
## Troubleshooting the Provider
5245

5346
See [verbose logging](https://www.terraform.io/docs/providers/oci/guides/troubleshooting.html#verbose-logging-for-oci-terraform-provider) for the details.
5447

55-
Developing the Provider
56-
---------------------------
48+
## Developing the Provider
5749

5850
To add features to the provider, install [Go](http://www.golang.org) and configure your your [GOPATH](http://golang.org/doc/code.html#GOPATH)
5951

@@ -70,3 +62,17 @@ $ make testacc
7062
```
7163

7264
> **Note:** The tests run against live OCI service APIs, you will need to configure environment variables with valid credientials as shown in the [documentation](https://www.terraform.io/docs/providers/oci/index.html).
65+
66+
## Contributing
67+
68+
This project welcomes contributions from the community. Before submitting a pull request, please [review our contribution guide](./CONTRIBUTING.md)
69+
70+
## Security
71+
72+
Please consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process
73+
74+
## License
75+
76+
Copyright (c) 2017, 2023 Oracle and/or its affiliates.
77+
78+
Released under the Mozilla Public License 2.0

SECURITY.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Reporting security vulnerabilities
2+
3+
Oracle values the independent security research community and believes that
4+
responsible disclosure of security vulnerabilities helps us ensure the security
5+
and privacy of all our users.
6+
7+
Please do NOT raise a GitHub Issue to report a security vulnerability. If you
8+
believe you have found a security vulnerability, please submit a report to
9+
[[email protected]][1] preferably with a proof of concept. Please review
10+
some additional information on [how to report security vulnerabilities to Oracle][2].
11+
We encourage people who contact Oracle Security to use email encryption using
12+
[our encryption key][3].
13+
14+
We ask that you do not use other channels or contact the project maintainers
15+
directly.
16+
17+
Non-vulnerability related security issues including ideas for new or improved
18+
security features are welcome on GitHub Issues.
19+
20+
## Security updates, alerts and bulletins
21+
22+
Security updates will be released on a regular cadence. Many of our projects
23+
will typically release security fixes in conjunction with the
24+
Oracle Critical Patch Update program. Additional
25+
information, including past advisories, is available on our [security alerts][4]
26+
page.
27+
28+
## Security-related information
29+
30+
We will provide security related information such as a threat model, considerations
31+
for secure use, or any known security issues in our documentation. Please note
32+
that labs and sample code are intended to demonstrate a concept and may not be
33+
sufficiently hardened for production use.
34+
35+
[1]: mailto:[email protected]
36+
[2]: https://www.oracle.com/corporate/security-practices/assurance/vulnerability/reporting.html
37+
[3]: https://www.oracle.com/security-alerts/encryptionkey.html
38+
[4]: https://www.oracle.com/security-alerts/
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
provider "oci" {
2+
tenancy_ocid = var.compartment_ocid
3+
region = var.region
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_compute_capacity_report" "test_compute_capacity_report_flex_shape" {
16+
#Required
17+
availability_domain = data.oci_identity_availability_domain.ad.name
18+
compartment_id = var.compartment_ocid
19+
shape_availabilities {
20+
#Required
21+
instance_shape = var.compute_capacity_report_shape_availabilities_instance_shape_flex
22+
23+
#Optional
24+
fault_domain = var.compute_capacity_report_shape_availabilities_fault_domain
25+
instance_shape_config {
26+
27+
#Optional
28+
memory_in_gbs = var.compute_capacity_report_shape_availabilities_instance_shape_config_memory_in_gbs
29+
nvmes = var.compute_capacity_report_shape_availabilities_instance_shape_config_nvmes
30+
ocpus = var.compute_capacity_report_shape_availabilities_instance_shape_config_ocpus
31+
}
32+
}
33+
}
34+
35+
resource "oci_core_compute_capacity_report" "test_compute_capacity_report_fix_shape" {
36+
#Required
37+
availability_domain = data.oci_identity_availability_domain.ad.name
38+
compartment_id = var.compartment_ocid
39+
shape_availabilities {
40+
#Required
41+
instance_shape = var.compute_capacity_report_shape_availabilities_instance_shape_fix
42+
}
43+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
variable "region" {
2+
description = "region in which to call API."
3+
}
4+
5+
variable "compartment_ocid" {
6+
description = "compartment_id in which to call API."
7+
}
8+
9+
variable "tenancy_ocid" {
10+
description = "tenancy OCID in which to launch instances."
11+
}
12+
13+
variable "user_ocid" {
14+
description = "user OCID for the user account with which to connect to the API."
15+
}
16+
17+
variable "private_key_path" {
18+
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."
19+
}
20+
21+
variable "fingerprint" {
22+
description = "PEM fingerprint for private key."
23+
}
24+
25+
variable "compute_capacity_report_availability_domain" {
26+
description = "AD in which to call API."
27+
default = "UgLr:PHX-AD-1"
28+
}
29+
30+
variable "compute_capacity_report_shape_availabilities_fault_domain" {
31+
description = "FD in which to call API."
32+
}
33+
34+
variable "compute_capacity_report_shape_availabilities_instance_shape_flex" {
35+
default = "VM.Standard.E4.Flex"
36+
}
37+
variable "compute_capacity_report_shape_availabilities_instance_shape_fix" {
38+
default = "VM.Standard1.8"
39+
}
40+
41+
variable "compute_capacity_report_shape_availabilities_instance_shape_config_memory_in_gbs" {
42+
default = 16
43+
}
44+
45+
variable "compute_capacity_report_shape_availabilities_instance_shape_config_nvmes" {
46+
default = 2
47+
}
48+
49+
variable "compute_capacity_report_shape_availabilities_instance_shape_config_ocpus" {
50+
default = 1
51+
}

examples/databasemigration/migration/migration.tf

Lines changed: 43 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,39 @@ variable "private_key_path" {
1919
variable "compartment_ocid" {
2020
}
2121

22+
variable "kms_key_id" {
23+
}
24+
25+
variable "kms_vault_id" {
26+
}
27+
28+
variable "ssh_public_keys" {
29+
}
30+
31+
variable "compartment_id" {
32+
}
33+
34+
variable "database_id" {
35+
}
36+
37+
variable "subnet_id" {
38+
}
39+
40+
variable "vcn_id" {
41+
}
42+
43+
variable "source_connection_id"{
44+
}
45+
46+
variable "source_connection_container_id"{
47+
}
48+
49+
variable "target_connection_id"{
50+
}
51+
52+
variable "ssh_key" {
53+
}
54+
2255
provider "oci" {
2356
tenancy_ocid = var.tenancy_ocid
2457
user_ocid = var.user_ocid
@@ -38,21 +71,6 @@ resource "random_string" "autonomous_database_admin_password" {
3871
override_special = "-_#"
3972
}
4073

41-
variable "kms_key_id" {
42-
}
43-
44-
variable "kms_vault_id" {
45-
}
46-
47-
variable "ssh_public_keys" {
48-
}
49-
50-
variable "compartment_id" {
51-
}
52-
53-
variable "database_id" {
54-
}
55-
5674
resource "oci_core_subnet" "test_subnet" {
5775
cidr_block = "10.0.0.0/24"
5876
compartment_id = var.compartment_id
@@ -153,10 +171,14 @@ resource "oci_database_migration_connection" "test_connection_source" {
153171

154172
resource "oci_database_migration_migration" "test_migration" {
155173
compartment_id = var.compartment_id
174+
175+
#csvText - Optional
176+
csv_text = "MY_BIZZ,SRC_CITY,TABLE,EXCLUDE"
177+
156178
data_transfer_medium_details {
157179
object_storage_details {
158-
bucket = "bucket"
159-
namespace = "namespace"
180+
bucket = "bucket"
181+
namespace = "namespace"
160182
}
161183
}
162184
datapump_settings {
@@ -190,11 +212,12 @@ resource "oci_database_migration_migration" "test_migration" {
190212
username = "ggadmin"
191213
}
192214
target_microservices_deployment_name = "Target"
193-
url = "https://130.35.83.125"
215+
url = "https://10.0.0.0"
194216
}
195217
}
196-
source_database_connection_id = "${oci_database_migration_connection.test_connection_source.id}"
197-
target_database_connection_id = "${oci_database_migration_connection.test_connection_target.id}"
218+
source_database_connection_id = var.source_connection_id
219+
source_container_database_connection_id = var.source_connection_container_id
220+
target_database_connection_id = var.target_connection_id
198221
type = "ONLINE"
199222
vault_details {
200223
compartment_id = var.compartment_id

0 commit comments

Comments
 (0)