Skip to content

Commit ddf1ecb

Browse files
andrecorreanetorrywhenHalimershelby-willis-lzmianguye
authored
Release 0.3.0 (#39)
* Release 0.2.1 * Release 0.2.2 * feat: TF < 1.3.0 restriction removed * feat: TF binary equal or greater than 1.3.0 requirement added * chore: release notes and version bump * chore: release notes, tag and SPECs updated * fix typo in dynamic groups that refered to domain groups * fix: version = "<= 5.16.0" removed * chore: release notes, version and spec updated * feat: OCI FW and ZPR IAM policies added * feat: examples updated * chore: release notes and version update * chore: release notes updated. * fix: attribute_sets = ["all"] added to oci_identity_domains_group * chore: release notes and version increment * fix: preventing username dupes to fail user lookup * fix: ignoring username dupes that can be provided as input * chore: release notes a version increment * chore: release date updated * feat: debug flag added * fix: user lookup only checks ACTIVE users * chore: release notes updated * doc: SPEC.md updated * feat: members checked against their respective identity domains. * doc: spec updated * chore: release notes * fix: debug reporting removed * feat: support for ignoring or honoring external updates done to identity domain group memberships * chore: release notes * fix: precondition check for any members * fix: error_message fix * fix: error_message fix 2 * fix: ignoring changes in schemas attribute * fix: ignore_changes list updated * fix: ignore_changes list added to dyn groups * feat: groups requestable by default * fix: schemas attribute alignment * fix: ignore_changes removed * fix: formatting * fix: removed attribute_sets=["all"] * feat: module default tag added * feat: policies updated: descriptions and tenancy level grants to app admins * chore: release notes updated * chore: release notes updated * chore: release notes updated * update to key value in order to create compartments_configuration and tags_configuration in one pass * release notes update * Update file RELEASE-NOTES.md * fix: user data source per identity domain and only evaluated if members attribute provided * fix: handling empty members list * chore: release notes updated * fix: looking up requested members only * chore: release data updated * Add pipeline code * Test 1 * test 2 * test 3 * test 4 * Testing CI config * test 4 * Test .ci/.gitlab-ci.yml file * Rearranging files * Automated commit from pipeline [skip ci] * test 5 * Automated commit from pipeline [skip ci] * test 6 * Automated commit from pipeline [skip ci] * chore: release notes updated * chore: .ci folder removed --------- Signed-off-by: Andre Correa <andre.correa@oracle.com> Co-authored-by: Rory Nguyen <rory.nguyen@oracle.com> Co-authored-by: josh_hammer <josh.hammer@oracle.com> Co-authored-by: Shelby Willis <shelby.willis@oracle.com> Co-authored-by: mianguye <mia.nguyen@oracle.com> Co-authored-by: terraform-runner <terraform-runner.oracle.com>
1 parent f11f5de commit ddf1ecb

Some content is hidden

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

60 files changed

+1831
-1815
lines changed

RELEASE-NOTES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# August 18, 2025 Release Notes - 0.3.0
2+
## Updates
3+
1. [Compartments module](./compartments/)
4+
- Module now allows users to create a compartment with a tag default, that uses a tag from a tag namespace created in the same terraform run.
5+
2. [Identity Domains module](./identity-domains/)
6+
- User lookup optimized. Users are now searched once for each provided identity domain and only for identity domains where the members attribute is non empty.
7+
3. Code formatted per Terraform standards.
8+
9+
110
# April 01, 2025 Release Notes - 0.2.9
211
## Updates
312
1. [Identity Domains module](./identity-domains/)

compartments/examples/external-dependency/main.tf

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
data "oci_objectstorage_namespace" "this" {
5-
count = var.oci_shared_config_bucket_name != null ? 1 : 0
6-
compartment_id = var.tenancy_ocid
5+
count = var.oci_shared_config_bucket_name != null ? 1 : 0
6+
compartment_id = var.tenancy_ocid
77
}
88

99
data "oci_objectstorage_object" "compartments" {
10-
count = var.oci_shared_config_bucket_name != null && var.oci_compartments_dependency != null ? 1 : 0
11-
bucket = var.oci_shared_config_bucket_name
12-
namespace = data.oci_objectstorage_namespace.this[0].namespace
13-
object = var.oci_compartments_dependency
10+
count = var.oci_shared_config_bucket_name != null && var.oci_compartments_dependency != null ? 1 : 0
11+
bucket = var.oci_shared_config_bucket_name
12+
namespace = data.oci_objectstorage_namespace.this[0].namespace
13+
object = var.oci_compartments_dependency
1414
}
1515

1616
data "oci_objectstorage_object" "tags" {
17-
count = var.oci_shared_config_bucket_name != null && var.oci_tags_dependency != null ? 1 : 0
18-
bucket = var.oci_shared_config_bucket_name
19-
namespace = data.oci_objectstorage_namespace.this[0].namespace
20-
object = var.oci_tags_dependency
17+
count = var.oci_shared_config_bucket_name != null && var.oci_tags_dependency != null ? 1 : 0
18+
bucket = var.oci_shared_config_bucket_name
19+
namespace = data.oci_objectstorage_namespace.this[0].namespace
20+
object = var.oci_tags_dependency
2121
}
2222

2323
module "vision_compartments" {
24-
source = "../../"
25-
tenancy_ocid = var.tenancy_ocid
24+
source = "../../"
25+
tenancy_ocid = var.tenancy_ocid
2626
compartments_configuration = var.compartments_configuration
27-
compartments_dependency = var.oci_compartments_dependency != null ? jsondecode(data.oci_objectstorage_object.compartments[0].content) : null
28-
tags_dependency = var.oci_tags_dependency != null ? jsondecode(data.oci_objectstorage_object.tags[0].content) : null
27+
compartments_dependency = var.oci_compartments_dependency != null ? jsondecode(data.oci_objectstorage_object.compartments[0].content) : null
28+
tags_dependency = var.oci_tags_dependency != null ? jsondecode(data.oci_objectstorage_object.tags[0].content) : null
2929
}

compartments/examples/external-dependency/variables.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
variable "tenancy_ocid" {}
5-
variable "region" {description = "Your tenancy home region"}
6-
variable "user_ocid" {default = ""}
7-
variable "fingerprint" {default = ""}
8-
variable "private_key_path" {default = ""}
9-
variable "private_key_password" {default = ""}
5+
variable "region" { description = "Your tenancy home region" }
6+
variable "user_ocid" { default = "" }
7+
variable "fingerprint" { default = "" }
8+
variable "private_key_path" { default = "" }
9+
variable "private_key_password" { default = "" }
1010

1111

1212
#-------------------------------------------------------------
1313
#-- Arbitrary compartments topology
1414
#-------------------------------------------------------------
1515
variable "compartments_configuration" {
1616
description = "The compartments configuration. Use the compartments attribute to define your topology. OCI supports compartment hierarchies up to six levels."
17-
type = any
17+
type = any
1818
}
1919

2020
variable "oci_shared_config_bucket_name" {
21-
type = string
21+
type = string
2222
default = null
2323
}
2424
variable "oci_compartments_dependency" {
25-
type = string
25+
type = string
2626
default = null
2727
}
2828
variable "oci_tags_dependency" {
29-
type = string
29+
type = string
3030
default = null
3131
}

compartments/examples/vision/automation_config.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
data "oci_objectstorage_namespace" "this" {
5-
count = var.automation_config != null ? 1 : 0
5+
count = var.automation_config != null ? 1 : 0
66
compartment_id = var.tenancy_ocid
77
}
88

99
### Writing compartments module output to Object Storage bucket.
1010
resource "oci_objectstorage_object" "this" {
11-
count = var.automation_config != null ? 1 : 0
11+
count = var.automation_config != null ? 1 : 0
1212
bucket = var.automation_config.bucket_name
1313
content = jsonencode(module.vision_compartments.compartments)
1414
namespace = data.oci_objectstorage_namespace.this[0].namespace

compartments/examples/vision/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
module "vision_compartments" {
5-
source = "../../"
6-
tenancy_ocid = var.tenancy_ocid
5+
source = "../../"
6+
tenancy_ocid = var.tenancy_ocid
77
compartments_configuration = var.compartments_configuration
88
}

compartments/examples/vision/variables.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
variable "tenancy_ocid" {}
5-
variable "region" {description = "Your tenancy home region"}
6-
variable "user_ocid" {default = ""}
7-
variable "fingerprint" {default = ""}
8-
variable "private_key_path" {default = ""}
9-
variable "private_key_password" {default = ""}
5+
variable "region" { description = "Your tenancy home region" }
6+
variable "user_ocid" { default = "" }
7+
variable "fingerprint" { default = "" }
8+
variable "private_key_path" { default = "" }
9+
variable "private_key_password" { default = "" }
1010

1111

1212
#-------------------------------------------------------------
1313
#-- Arbitrary compartments topology
1414
#-------------------------------------------------------------
1515
variable "compartments_configuration" {
1616
description = "The compartments configuration. Use the compartments attribute to define your topology. OCI supports compartment hierarchies up to six levels."
17-
type = any
17+
type = any
1818
}
1919

2020
variable "automation_config" {
2121
type = object({
22-
bucket_name = string
23-
output_file_name = string
22+
bucket_name = string
23+
output_file_name = string
2424
})
2525
default = null
2626
}

0 commit comments

Comments
 (0)