Skip to content

Commit 7aa4174

Browse files
authored
Pin Terraform version - [CORE-1297] (#88)
1 parent 7e32081 commit 7aa4174

File tree

20 files changed

+86
-40
lines changed

20 files changed

+86
-40
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
[![Maintained by Gruntwork.io](https://img.shields.io/badge/maintained%20by-gruntwork.io-%235849a6.svg)](https://gruntwork.io/?ref=repo_package_terraform_utilities)
22
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/gruntwork-io/terraform-aws-utilities.svg?label=latest)](https://github.com/gruntwork-io/terraform-aws-utilities/releases/latest)
3-
![Terraform Version](https://img.shields.io/badge/tf-%3E%3D1.1.0-blue.svg)
3+
![Terraform Version](https://img.shields.io/badge/tf-%3E%3D1.1.0%3C%2C%20%3C%3D1.5.7-blue.svg)
44

55
# Terraform Utility Modules
66

77
This repo contains miscellaneous utility and helper modules for use with Terraform.
88

9+
## Information on HashiCorp BSL License Change
10+
11+
Due to the HashiCorp BSL license change, we are restricting Terraform to the latest open source version (`1.5.7`).
12+
Going forward we will be adding support for OpenTofu. To learn more, see the official [OpenTofu website](https://opentofu.org/)
13+
and [project status](https://github.com/opentofu/opentofu/blob/main/WEEKLY_UPDATES.md).
14+
915
## What is in this repo
1016

1117
This repo provides a Gruntwork IaC Package and has the following folder structure:

examples/executable-dependency/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
terraform {
2-
# This module is now only being tested with Terraform 1.1.x. However, to make upgrading easier, we are setting 1.0.0 as the minimum version.
3-
required_version = ">= 1.0.0"
2+
# Due to the HashiCorp BSL License change, we are restricting the latest version of Terraform to 1.5.7.
3+
# Going forward we will be adding support for OpenTofu. For additional information on OpenTofu please
4+
# see the official OpenTofu website at https://opentofu.org/.
5+
required_version = ">= 1.0.0, <= 1.5.7"
46
}
57

68
module "executable" {

examples/instance-type/main.tf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
terraform {
2-
# This module is now only being tested with Terraform 1.1.x. However, to make upgrading easier, we are setting 1.0.0 as the minimum version.
3-
required_version = ">= 1.0.0"
2+
# Due to the HashiCorp BSL License change, we are restricting the latest version of Terraform to 1.5.7.
3+
# Going forward we will be adding support for OpenTofu. For additional information on OpenTofu please
4+
# see the official OpenTofu website at https://opentofu.org/.
5+
required_version = ">= 1.0.0, <= 1.5.7"
46
}
57

68
provider "aws" {
@@ -55,6 +57,6 @@ data "aws_ami" "ubuntu" {
5557

5658
filter {
5759
name = "name"
58-
values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
60+
values = ["ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*"]
5961
}
6062
}

examples/join-path/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
terraform {
2-
# This module is now only being tested with Terraform 1.1.x. However, to make upgrading easier, we are setting 1.0.0 as the minimum version.
3-
required_version = ">= 1.0.0"
2+
# Due to the HashiCorp BSL License change, we are restricting the latest version of Terraform to 1.5.7.
3+
# Going forward we will be adding support for OpenTofu. For additional information on OpenTofu please
4+
# see the official OpenTofu website at https://opentofu.org/.
5+
required_version = ">= 1.0.0, <= 1.5.7"
46
}
57

68
module "path" {

examples/list-remove/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
terraform {
2-
# This module is now only being tested with Terraform 1.1.x. However, to make upgrading easier, we are setting 1.0.0 as the minimum version.
3-
required_version = ">= 1.0.0"
2+
# Due to the HashiCorp BSL License change, we are restricting the latest version of Terraform to 1.5.7.
3+
# Going forward we will be adding support for OpenTofu. For additional information on OpenTofu please
4+
# see the official OpenTofu website at https://opentofu.org/.
5+
required_version = ">= 1.0.0, <= 1.5.7"
46
}
57

68
module "list_remove" {

examples/operating-system/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
terraform {
2-
# This module is now only being tested with Terraform 1.1.x. However, to make upgrading easier, we are setting 1.0.0 as the minimum version.
3-
required_version = ">= 1.0.0"
2+
# Due to the HashiCorp BSL License change, we are restricting the latest version of Terraform to 1.5.7.
3+
# Going forward we will be adding support for OpenTofu. For additional information on OpenTofu please
4+
# see the official OpenTofu website at https://opentofu.org/.
5+
required_version = ">= 1.0.0, <= 1.5.7"
46
}
57

68
module "os" {

examples/pex/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66

77
terraform {
8-
# This module is now only being tested with Terraform 1.1.x. However, to make upgrading easier, we are setting 1.0.0 as the minimum version.
9-
required_version = ">= 1.0.0"
8+
# Due to the HashiCorp BSL License change, we are restricting the latest version of Terraform to 1.5.7.
9+
# Going forward we will be adding support for OpenTofu. For additional information on OpenTofu please
10+
# see the official OpenTofu website at https://opentofu.org/.
11+
required_version = ">= 1.0.0, <= 1.5.7"
1012
}
1113

1214
# Run the PEX binary as a local-exec provisioner on a null_resource.

examples/request-quota-increase/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
terraform {
2-
# This module is now only being tested with Terraform 1.1.x. However, to make upgrading easier, we are setting 1.0.0 as the minimum version.
3-
required_version = ">= 1.0.0"
2+
# Due to the HashiCorp BSL License change, we are restricting the latest version of Terraform to 1.5.7.
3+
# Going forward we will be adding support for OpenTofu. For additional information on OpenTofu please
4+
# see the official OpenTofu website at https://opentofu.org/.
5+
required_version = ">= 1.0.0, <= 1.5.7"
46
}
57

68
provider "aws" {

examples/require-executable/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
terraform {
2-
# This module is now only being tested with Terraform 1.1.x. However, to make upgrading easier, we are setting 1.0.0 as the minimum version.
3-
required_version = ">= 1.0.0"
2+
# Due to the HashiCorp BSL License change, we are restricting the latest version of Terraform to 1.5.7.
3+
# Going forward we will be adding support for OpenTofu. For additional information on OpenTofu please
4+
# see the official OpenTofu website at https://opentofu.org/.
5+
required_version = ">= 1.0.0, <= 1.5.7"
46
}
57

68
module "require_executables" {

modules/executable-dependency/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
terraform {
2-
# This module is now only being tested with Terraform 1.1.x. However, to make upgrading easier, we are setting 1.0.0 as the minimum version.
3-
required_version = ">= 1.0.0"
2+
# Due to the HashiCorp BSL License change, we are restricting the latest version of Terraform to 1.5.7.
3+
# Going forward we will be adding support for OpenTofu. For additional information on OpenTofu please
4+
# see the official OpenTofu website at https://opentofu.org/.
5+
required_version = ">= 1.0.0, <= 1.5.7"
46
}
57

68
data "external" "executable" {

0 commit comments

Comments
 (0)