GoogleCloudPlatform / cloud-ops-sandbox

Cloud Operations Sandbox is an open source collection of tools that helps practitioners to learn O11y and R9y practices from Google and apply them using Cloud Operations suite of tools.
Apache License 2.0
405 stars 148 forks source link

[Feature]: Support Terraform 1.6.0 or newer #1057

Closed ymotongpoo closed 11 months ago

ymotongpoo commented 1 year ago

Tell us, what problem you are trying to solve?

On running cloud-ops-sandbox/provisioning/sandboxctl create -verbose, it failed with the following error message.

Initializing modules...
╷
│ Error: Unsupported Terraform Core version
│ 
│   on providers.tf line 24, in terraform:
│   24:   required_version = ">= 1.4.1, < 1.6.0"
│ 
│ This configuration does not support Terraform version 1.6.1. To proceed, either choose another supported
│ Terraform version or update this version constraint. Version constraints are normally set for good reason, so
│ updating the constraint may lead to other errors or unexpected behavior.

Because newly launched Cloud Shell has Terraform 1.6.1+, the script fails because of version incompatibility.

Please describe your proposal

Current stable is 1.6.3 and Terraform made breaking changes at 1.5. Because it's bothersome to install obsolete versions of Terraform at Cloud Shell, it would be great to support 1.6.0 or newer.

Specify the version of Cloud Ops Sandbox if relevant

0.9.2

Code of Conduct