Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add oci_certificates_certificate_bundle and oci_certificates_certificate_authority_bundle data sources #1796

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0e3c704
Add oci_certificates_certificate_bundle and oci_certificates_certific…
F21 Mar 9, 2023
885d842
Added - Support for Custom hostname Terraform Instance Pools - Custom…
Jul 21, 2023
3f0c308
Added - Support for Budgets - Single Use Budgets
May 24, 2023
95db98f
Added - Model Compose and Model Alias features to custom Models in do…
Jul 21, 2023
f333555
Added - Support for Tersi for Test Connectivity feature GoldenGate Te…
Jul 21, 2023
cff4ab7
Vendored - oci-go-sdk v65.45.0 changes for existing & new services
vsin12 Jul 21, 2023
70dc850
Finalize changelog and release for version v5.6.0
vsin12 Jul 21, 2023
b0c28b7
Vendored - oci-go-sdk for release version v65
varmax2511 Jul 25, 2023
f0f0ed4
Added - Release for v5.6.0
Khalid-Chaudhry Jul 26, 2023
9064e68
Added - README.md of service examples with magic button
tf-oci-pub Jul 26, 2023
ba43519
Releasing version 5.6.0
Khalid-Chaudhry Jul 26, 2023
00ddcb2
Vendored - oci-go-sdk v65.45.0 changes for existing & new services
Khalid-Chaudhry Jul 28, 2023
9cd82eb
Added - Support for Budgets - Single Use Budgets
May 24, 2023
672b757
Finalize changelog and release for version v5.6.0
Khalid-Chaudhry Jul 30, 2023
ed6acbd
Exempted - Reverted release version
Khalid-Chaudhry Jul 31, 2023
584c169
Added - Support for OPSI News Reports
Jul 28, 2023
4d495c0
Added - startCredentialRotation, completeCredentialRotation, getCrede…
Apr 19, 2023
028ba4c
Added - Support for TLS & ORDS BYO Certificates (Phase 2) | ADB-C@C
May 19, 2023
61a4a76
Vendored - oci-go-sdk v65.46.0 changes for existing & new services
Khalid-Chaudhry Aug 1, 2023
180ca7a
Vendored - oci-go-sdk v65.46.0 changes for existing & new services
Khalid-Chaudhry Aug 1, 2023
336be1b
Finalize changelog and release for version v5.7.0
Khalid-Chaudhry Aug 1, 2023
39eadfc
Exempted - Fix release date
jotruon Aug 1, 2023
aa2534e
Vendored - oci-go-sdk for release version v65
varmax2511 Aug 1, 2023
bba51fb
Added - Release for v5.7.0
jotruon Aug 1, 2023
7e85cdc
Added - README.md of service examples with magic button
tf-oci-pub Aug 1, 2023
0ead5b9
Releasing version v5.7.0
jotruon Aug 1, 2023
7a1c833
Add oci_certificates_certificate_bundle and oci_certificates_certific…
F21 Mar 9, 2023
15fa474
Merge remote-tracking branch 'origin/certificates-data-sources' into …
F21 Aug 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
## 5.5.0 (Unreleased)
## 5.7.0 (August 01, 2023)

### Added
- Support for TLS & ORDS BYO Certificates (Phase 2) | ADB-C@C
- Support for OPSI News Reports
- Support for Budgets - Single Use Budgets

## 5.6.0 (July 26, 2023)

### Added
- Support for Tersi for Test Connectivity feature GoldenGate Test Connectivity for Connections associated with Deployments
- Model Compose and Model Alias features to custom Models in document service
- Support for Budgets - Single Use Budgets
- Support for Custom hostname Terraform Instance Pools - Custom hostname support

## 5.5.0 (July 19, 2023)

### Added
- Support for Remove internal-only additionalCapabilities parameter from Container Instances Public SDK/CLI and Terraform
Expand Down
42 changes: 40 additions & 2 deletions examples/aiDocument/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "oci_ai_document_project" "test_project" {
compartment_id = var.compartment_id
}

resource "oci_ai_document_model" "test_model" {
resource "oci_ai_document_model" "test_model1" {
#Required
compartment_id = var.compartment_id
model_type = "KEY_VALUE_EXTRACTION"
Expand All @@ -38,6 +38,44 @@ resource "oci_ai_document_model" "test_model" {
#Optional
display_name = "test_tf_model"
is_quick_mode = "false"
max_training_time_in_hours = "0.5"
model_version = var.model_model_version
}

resource "oci_ai_document_model" "test_model2" {
#Required
compartment_id = var.compartment_id
model_type = "KEY_VALUE_EXTRACTION"
project_id = oci_ai_document_project.test_project.id

training_dataset {
bucket = "tf_test_bucket"
dataset_type = "OBJECT_STORAGE"
namespace = "axgexwaxnm7k"
object = "tf_test_aadhar_1686719828190.jsonl"
}

#Optional
display_name = "test_tf_model2"
is_quick_mode = "false"
model_version = var.model_model_version
}

resource "oci_ai_document_model" "test_compose_model" {
#Required
compartment_id = var.compartment_id
model_type = "KEY_VALUE_EXTRACTION"
project_id = oci_ai_document_project.test_project.id

component_models {
model_id = oci_ai_document_model.test_model1.id
}

component_models {
model_id = oci_ai_document_model.test_model2.id
}

#Optional
display_name = "test_compose_model"
is_quick_mode = "false"
model_version = var.model_model_version
}
86 changes: 16 additions & 70 deletions examples/budget/main.tf → examples/budget/budget/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ variable "subscription_id" {
}

provider "oci" {
provider = "4.67.0"
# version = "4.67.0"
region = var.region
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
Expand All @@ -52,40 +52,6 @@ resource "oci_budget_budget" "test_budget" {
budget_processing_period_start_offset = "11"
}

resource "oci_budget_budget" "test_budget_invoice" {
#Required
amount = "1"
compartment_id = var.tenancy_ocid
reset_period = "MONTHLY"
target_type = "COMPARTMENT"

targets = [
var.subscription_id
]

#Optional
description = "budget invoice description"
display_name = "budget_invoice"
processing_period_type = "INVOICE"
}

# get budget should happen after alert rule is successful
# as alert rule creation updates the `alert_rule_count` field
data "oci_budget_budget" "budget1" {
budget_id = oci_budget_budget.test_budget.id
depends_on = [
data.oci_budget_alert_rule.test_alert_rule
]
}

data "oci_budget_budget" "budget_invoice" {
budget_id = oci_budget_budget.test_budget_invoice.id
depends_on = [
data.oci_budget_alert_rule.test_alert_rule
]
}


data "oci_budget_budgets" "test_budgets" {
#Required
compartment_id = var.tenancy_ocid
Expand All @@ -96,40 +62,22 @@ data "oci_budget_budgets" "test_budgets" {

output "budget" {
value = {
amount = data.oci_budget_budget.budget1.amount
compartment_id = data.oci_budget_budget.budget1.compartment_id
reset_period = data.oci_budget_budget.budget1.reset_period
targets = data.oci_budget_budget.budget1.targets[0]
description = data.oci_budget_budget.budget1.description
display_name = data.oci_budget_budget.budget1.display_name
alert_rule_count = data.oci_budget_budget.budget1.alert_rule_count
state = data.oci_budget_budget.budget1.state
time_created = data.oci_budget_budget.budget1.time_created
time_updated = data.oci_budget_budget.budget1.time_updated
version = data.oci_budget_budget.budget1.version
amount = oci_budget_budget.test_budget.amount
compartment_id = oci_budget_budget.test_budget.compartment_id
reset_period = oci_budget_budget.test_budget.reset_period
targets = oci_budget_budget.test_budget.targets[0]
description = oci_budget_budget.test_budget.description
display_name = oci_budget_budget.test_budget.display_name
alert_rule_count = oci_budget_budget.test_budget.alert_rule_count
state = oci_budget_budget.test_budget.state
time_created = oci_budget_budget.test_budget.time_created
time_updated = oci_budget_budget.test_budget.time_updated
version = oci_budget_budget.test_budget.version
}
# These values are not always present
// actual_spend = data.oci_budget_budget.budget1.actual_spend
// forecasted_spend = data.oci_budget_budget.budget1.forecasted_spend
// time_spend_computed = data.oci_budget_budget.budget1.time_spend_computed
}

output "budget_invoice" {
value = {
amount = data.oci_budget_budget.budget_invoice.amount
compartment_id = data.oci_budget_budget.budget_invoice.compartment_id
reset_period = data.oci_budget_budget.budget_invoice.reset_period
targets = data.oci_budget_budget.budget_invoice.targets[0]
description = data.oci_budget_budget.budget_invoice.description
display_name = data.oci_budget_budget.budget_invoice.display_name
alert_rule_count = data.oci_budget_budget.budget_invoice.alert_rule_count
state = data.oci_budget_budget.budget_invoice.state
time_created = data.oci_budget_budget.budget_invoice.time_created
time_updated = data.oci_budget_budget.budget_invoice.time_updated
version = data.oci_budget_budget.budget_invoice.version

processing_period_type = data.oci_budget_budget.budget_invoice.processing_period_type
}
// actual_spend = oci_budget_budget.test_budget.actual_spend
// forecasted_spend = oci_budget_budget.test_budget.forecasted_spend
// time_spend_computed = oci_budget_budget.test_budget.time_spend_computed
}

resource "oci_budget_alert_rule" "test_alert_rule" {
Expand Down Expand Up @@ -178,6 +126,4 @@ data "oci_budget_alert_rules" "test_alert_rules" {
#Optional
// display_name = oci_budget_alert_rule.test_alert_rule.display_name
state = "ACTIVE"
}


}
128 changes: 128 additions & 0 deletions examples/budget/single_use_budget/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Mozilla Public License v2.0

/*
* This example shows how to use the single use budget and alert rule resources.
*/

variable "tenancy_ocid" {
}

variable "user_ocid" {
}

variable "fingerprint" {
}

variable "private_key_path" {
}

variable "compartment_ocid" {
}

variable "region" {
}

variable "subscription_id" {
}

provider "oci" {
# version = "4.67.0"
region = var.region
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
}

resource "oci_budget_budget" "test_single_use_budget" {
# Required
amount = "1"
compartment_id = var.tenancy_ocid
reset_period = "MONTHLY"
target_type = "COMPARTMENT"

targets = [
var.compartment_ocid,
]

# Optional
description = "budget single use"
display_name = "budget2"
processing_period_type = "SINGLE_USE"
start_date = "2023-07-12T16:01:19.847222+05:30"
end_date = "2023-08-12T16:01:19.847222+05:30"
}


data "oci_budget_budgets" "test_budgets" {
#Required
compartment_id = var.tenancy_ocid
#Optional
// display_name = oci_budget_budget.test_budget.display_name
// state = "ACTIVE"
}

output "budget_single_use" {
value = {
amount = oci_budget_budget.test_single_use_budget.amount
compartment_id = oci_budget_budget.test_single_use_budget.compartment_id
reset_period = oci_budget_budget.test_single_use_budget.reset_period
targets = oci_budget_budget.test_single_use_budget.targets[0]
description = oci_budget_budget.test_single_use_budget.description
display_name = oci_budget_budget.test_single_use_budget.display_name
alert_rule_count = oci_budget_budget.test_single_use_budget.alert_rule_count
state = oci_budget_budget.test_single_use_budget.state
time_created = oci_budget_budget.test_single_use_budget.time_created
time_updated = oci_budget_budget.test_single_use_budget.time_updated
version = oci_budget_budget.test_single_use_budget.version
processing_period_type = oci_budget_budget.test_single_use_budget.processing_period_type
}
}

resource "oci_budget_alert_rule" "test_alert_rule" {
#Required
budget_id = oci_budget_budget.test_single_use_budget.id
threshold = "100"
threshold_type = "ABSOLUTE"
type = "ACTUAL"

#Optional
description = "alertRuleDescription"
display_name = "alertRule"
message = "possible overspend"
recipients = "[email protected]"
}

output "alert_rule" {
value = {
budget_id = data.oci_budget_alert_rule.test_alert_rule.budget_id
recipients = data.oci_budget_alert_rule.test_alert_rule.recipients
description = data.oci_budget_alert_rule.test_alert_rule.description
display_name = data.oci_budget_alert_rule.test_alert_rule.display_name
message = data.oci_budget_alert_rule.test_alert_rule.message
recipients = data.oci_budget_alert_rule.test_alert_rule.recipients
state = data.oci_budget_alert_rule.test_alert_rule.state
threshold = data.oci_budget_alert_rule.test_alert_rule.threshold
threshold_type = data.oci_budget_alert_rule.test_alert_rule.threshold_type
time_created = data.oci_budget_alert_rule.test_alert_rule.time_created
time_updated = data.oci_budget_alert_rule.test_alert_rule.time_updated
type = data.oci_budget_alert_rule.test_alert_rule.type
version = data.oci_budget_alert_rule.test_alert_rule.version
}
}

data "oci_budget_alert_rule" "test_alert_rule" {
#Required
budget_id = oci_budget_budget.test_single_use_budget.id
alert_rule_id = oci_budget_alert_rule.test_alert_rule.id
}

data "oci_budget_alert_rules" "test_alert_rules" {
#Required
budget_id = oci_budget_budget.test_single_use_budget.id

#Optional
// display_name = oci_budget_alert_rule.test_alert_rule.display_name
state = "ACTIVE"
}
2 changes: 2 additions & 0 deletions examples/compute/instance_pool/instance_pool.tf
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ resource "oci_core_instance_pool" "test_instance_pool" {
size = 2
state = "RUNNING"
display_name = "TestInstancePool"
instance_display_name_formatter = "host-$${launchCount}"
instance_hostname_formatter = "host-$${launchCount}"

placement_configurations {
availability_domain = data.oci_identity_availability_domain.ad.name
Expand Down
Loading