Skip to content

Commit a41b383

Browse files
Release 0.2.3 (#31)
* 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 * OCI provider requirement removed version <= "5.16.0" removed Signed-off-by: Andre Correa <andre.correa@oracle.com> --------- Signed-off-by: Andre Correa <andre.correa@oracle.com>
1 parent ebf7293 commit a41b383

File tree

33 files changed

+69
-172
lines changed

33 files changed

+69
-172
lines changed

RELEASE-NOTES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# August 27, 2024 Release Notes - 0.2.3
2+
## Updates
3+
1. All modules now require Terraform binary equal or greater than 1.3.0.
4+
2. *cislz-terraform-module* tag renamed to *ocilz-terraform-module*.
5+
6+
17
# July 24, 2024 Release Notes - 0.2.2
28
## New
39
1. [Identity Domains module](./identity-domains/)

compartments/README.md

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ Example:
8181
```
8282

8383
## Requirements
84+
### Terraform Version >= 1.3.0
85+
86+
This module requires Terraform binary version 1.3.0 or greater, as it relies on Optional Object Type Attributes feature. The feature shortens the amount of input values in complex object types, by having Terraform automatically inserting a default value for any missing optional attributes.
87+
8488
### IAM Permissions
8589

8690
This module requires the following OCI IAM permission in compartments referred by *default_parent_ocid* and/or *parent_ocid*:
@@ -102,27 +106,6 @@ Allow group <group> to inspect tag-namespaces in tenancy
102106
- *\<tag_default_compartment_name\>* is the compartment where the tag default is applied.
103107
- *\<tag_namespace_compartment_name\>* is the compartment where the tag namespace is available.
104108

105-
### Terraform Version < 1.3.x and Optional Object Type Attributes
106-
This module relies on [Terraform Optional Object Type Attributes feature](https://developer.hashicorp.com/terraform/language/expressions/type-constraints#optional-object-type-attributes), which is experimental from Terraform 0.14.x to 1.2.x. It shortens the amount of input values in complex object types, by having Terraform automatically inserting a default value for any missing optional attributes. The feature has been promoted and it is no longer experimental in Terraform 1.3.x.
107-
108-
**As is, this module can only be used with Terraform versions up to 1.2.x**, because it can be consumed by other modules via [OCI Resource Manager service](https://docs.oracle.com/en-us/iaas/Content/ResourceManager/home.htm), that still does not support Terraform 1.3.x.
109-
110-
Upon running *terraform plan* with Terraform versions prior to 1.3.x, Terraform displays the following warning:
111-
```
112-
Warning: Experimental feature "module_variable_optional_attrs" is active
113-
```
114-
115-
Note the warning is harmless. The code has been tested with Terraform 1.3.x and the implementation is fully compatible.
116-
117-
If you really want to use Terraform 1.3.x, in [providers.tf](./providers.tf):
118-
1. Change the terraform version requirement to:
119-
```
120-
required_version = ">= 1.3.0"
121-
```
122-
2. Remove the line:
123-
```
124-
experiments = [module_variable_optional_attrs]
125-
```
126109
## How to Invoke the Module
127110

128111
Terraform modules can be invoked locally or remotely.

compartments/SPEC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| Name | Version |
44
|------|---------|
5-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | < 1.3.0 |
5+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
66

77
## Providers
88

compartments/examples/external-dependency/providers.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ provider "oci" {
1111
}
1212

1313
terraform {
14-
required_version = "< 1.3.0"
1514
required_providers {
1615
oci = {
1716
source = "oracle/oci"
1817
}
1918
}
20-
experiments = [module_variable_optional_attrs]
2119
}

compartments/examples/vision/providers.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ provider "oci" {
1111
}
1212

1313
terraform {
14-
required_version = "< 1.3.0"
1514
required_providers {
1615
oci = {
1716
source = "oracle/oci"
1817
}
1918
}
20-
experiments = [module_variable_optional_attrs]
2119
}

compartments/metadata.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
#-- Used to inform module and release number.
55
locals {
6-
cislz_module_tag = {"cislz-terraform-module" : fileexists("${path.module}/../release.txt") ? "${var.module_name}/${file("${path.module}/../release.txt")}" : "${var.module_name}"}
6+
cislz_module_tag = {"ocilz-terraform-module" : fileexists("${path.module}/../release.txt") ? "${var.module_name}/${file("${path.module}/../release.txt")}" : "${var.module_name}"}
77
}

compartments/providers.tf

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

44
terraform {
5-
required_version = "< 1.3.0"
5+
required_version = ">= 1.3.0"
66
required_providers {
77
oci = {
88
source = "oracle/oci"
99
}
1010
}
11-
experiments = [module_variable_optional_attrs]
1211
}

dynamic-groups/README.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,17 @@ The module defines a single input variable named *dynamic_groups_configuration*,
1414
Check the [examples](./examples/) folder for module usage. Specifically, see [vision](./examples/vision/README.md) example for the dynamic groups deployed by [OCI Base Landing Zone](https://github.com/oracle-quickstart/oci-cis-landingzone-quickstart).
1515

1616
## Requirements
17+
### Terraform Version >= 1.3.0
18+
19+
This module requires Terraform binary version 1.3.0 or greater, as it relies on Optional Object Type Attributes feature. The feature shortens the amount of input values in complex object types, by having Terraform automatically inserting a default value for any missing optional attributes.
20+
1721
### IAM Permissions
1822

1923
This module requires the following OCI IAM permission:
2024
```
2125
Allow group <group> to manage dynamic-groups in tenancy
2226
```
23-
### Terraform Version < 1.3.x and Optional Object Type Attributes
24-
This module relies on [Terraform Optional Object Type Attributes feature](https://developer.hashicorp.com/terraform/language/expressions/type-constraints#optional-object-type-attributes), which is experimental from Terraform 0.14.x to 1.2.x. It shortens the amount of input values in complex object types, by having Terraform automatically inserting a default value for any missing optional attributes. The feature has been promoted and it is no longer experimental in Terraform 1.3.x.
25-
26-
**As is, this module can only be used with Terraform versions up to 1.2.x**, because it can be consumed by other modules via [OCI Resource Manager service](https://docs.oracle.com/en-us/iaas/Content/ResourceManager/home.htm), that still does not support Terraform 1.3.x.
27-
28-
Upon running *terraform plan* with Terraform versions prior to 1.3.x, Terraform displays the following warning:
29-
```
30-
Warning: Experimental feature "module_variable_optional_attrs" is active
31-
```
3227

33-
Note the warning is harmless. The code has been tested with Terraform 1.3.x and the implementation is fully compatible.
34-
35-
If you really want to use Terraform 1.3.x, in [providers.tf](./providers.tf):
36-
1. Change the terraform version requirement to:
37-
```
38-
required_version = ">= 1.3.0"
39-
```
40-
2. Remove the line:
41-
```
42-
experiments = [module_variable_optional_attrs]
43-
```
4428
## How to Invoke the Module
4529

4630
Terraform modules can be invoked locally or remotely.

dynamic-groups/SPEC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| Name | Version |
44
|------|---------|
5-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | < 1.3.0 |
5+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
66

77
## Providers
88

dynamic-groups/examples/vision/providers.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ provider "oci" {
1111
}
1212

1313
terraform {
14-
required_version = "< 1.3.0"
1514
required_providers {
1615
oci = {
1716
source = "oracle/oci"
1817
}
1918
}
20-
experiments = [module_variable_optional_attrs]
2119
}

0 commit comments

Comments
 (0)