Skip to content

Commit add16eb

Browse files
authored
fix: updates the TF version constraint to 1.3 (#419)
Co-authored-by: Awais Malik <[email protected]>
1 parent eeb107f commit add16eb

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1010

1111
### ⚠ BREAKING CHANGES
1212

13+
* Requires [Terraform](https://www.terraform.io/downloads.html) >= 1.3.0
1314
* Add pwd validation policy for mysql modules ([#409](https://github.com/terraform-google-modules/terraform-google-sql-db/issues/409))
1415
* adds settings.deletion_protection_enabled to modules ([#404](https://github.com/terraform-google-modules/terraform-google-sql-db/issues/404))
1516
* Aligned the behaviour of additional_users resource in all 3 Cloud SQL instance modules. ([#398](https://github.com/terraform-google-modules/terraform-google-sql-db/issues/398))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The root module has been deprecated. Please switch to using one of the submodule
3535

3636
### Installation Dependencies
3737

38-
- [Terraform](https://www.terraform.io/downloads.html) >= 0.13.0
38+
- [Terraform](https://www.terraform.io/downloads.html) >= 1.3.0
3939
- [terraform-provider-google](https://github.com/terraform-providers/terraform-provider-google) plugin >= v4.45.0
4040

4141
The following dependency must be available for SQL Server module:

docs/upgrading_to_sql_db_14.0.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,7 @@ module "smysql" {
221221
]
222222
}
223223
```
224+
225+
### [Terraform](https://www.terraform.io/downloads.html) >= 1.3.0 is required as `name_override` is made optional in the `read_replica` object
226+
The [`name_override`](https://github.com/terraform-google-modules/terraform-google-sql-db/blob/master/modules/postgresql/variables.tf#L232) attribute for [`read_replica`](https://github.com/terraform-google-modules/terraform-google-sql-db/blob/master/modules/postgresql/variables.tf#L228) is optional now. If passed, the name for the read replica will be set as such. Since [optional attributes](https://developer.hashicorp.com/terraform/language/expressions/type-constraints#optional-object-type-attributes)
227+
is a version 1.3 feature, the configuration will fail if the pinned version is < 1.3.

modules/mysql/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
terraform {
18-
required_version = ">= 0.13"
18+
required_version = ">= 1.3"
1919
required_providers {
2020
null = {
2121
source = "hashicorp/null"

modules/postgresql/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
terraform {
18-
required_version = ">= 0.13"
18+
required_version = ">= 1.3"
1919
required_providers {
2020
null = {
2121
source = "hashicorp/null"

modules/safer_mysql/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
terraform {
18-
required_version = ">= 0.13"
18+
required_version = ">= 1.3"
1919
required_providers {
2020

2121
google = {

0 commit comments

Comments
 (0)