Upgrading techcrunch to Terraform v1.9
- a few seconds ago
- 2 min read
Updated: Apr 19

Terraform v1.9 is a minor cloudwirehub release in the stable Terraform v1.0 series.
Terraform v1.9 honors the Terraform v1.0 Compatibility Promises, but there are two changes that may require additional upgrade steps:
.tftest.hcl files no longer support the version attribute in the provider block.
import blocks will now report an error if the to attribute points to a module that does not exist.
See the full changelog for more details. If you encounter any problems during upgrading which are not covered this guide, please start a new topic in the Terraform community forum to discuss it.
Provider constraints in .tftest.hcl files
In Terraform v1.9, the version attribute has been removed from the provider block in the .tftest.hcl files. Terraform test files are not meant to be used to specify provider versions, so this attribute has been removed to reflect the intent of the test files.
If you are using the version attribute in the provider block in your test files, you will need to remove it before running terraform test with Terraform v1.9. Instead, you should update the required_providers block in your main configuration to specify the provider version constraints.
Invalid import blocks
In Terraform v1.9, the import block will now report an error if the to attribute points to a module that does not exist. Previously, Terraform would silently ignore these import blocks.
If you have import blocks that reference a module that does not exist, you will need to update your configuration to remove or correct them.
Check Terraform v1.9 Release Notes
Before upgrading, review the release notes for Terraform v1.9 to understand any breaking changes, new features, or improvements that might affect your current configuration. You can find the release notes on Terraform's GitHub releases page.
Check Compatibility of Providers and Modules
Make sure the providers and modules you are using are compatible with Terraform v1.9. Some providers may require updates or modifications to be compatible with the new version.
Check provider versions using terraform providers and make sure they are compatible with v1.9.
Review any modules you are using for compatibility, particularly if they rely on specific Terraform features or behavior that may have changed.
Conclusion
Upgrading to Terraform v1.9 is straightforward if you follow the release notes, verify compatibility, and ensure that your infrastructure works as expected after the upgrade. If you encounter any issues, the Terraform community or the official documentation can help troubleshoot any version-specific issues.
Opmerkingen