I’ve written a blog post on how to run Terraform in Bitbucket Pipelines:
Automating your processes is a key best practice when working with Terraform, OpenTofu, and similar tools for infrastructure as code. This gives you a consistent workflow for all changes to the infrastructure you manage using these tools. Two common approaches are:
- Use a dedicated infrastructure automation platform such as Spacelift or HCP Terraform
- Use a generalized automation tool where you can build your own automation workflows.
The second option often involves using features available on a version control and collaboration platform such as GitHub, GitLab, or Bitbucket. In this blog post, we will cover an option in the second category of automation tools: how to run Terraform in Bitbucket Pipelines.
Read more at spacelift.io




