Last updated
Was this helpful?
Last updated
Was this helpful?
Using Terraform, GitHub Actions, and DuploCloud together is very straightforward. DuploCloud has created a dedicated provider for Terraform and custom GitHub Actions to orchestrate the flow. It is is surprisingly easy and quick to get setup.
There are four main actions to run to get a module properly installed and running.
Just like all of the other actions, we always start with getting DuploCloud and the underlying cloud all setup and authenticated.
Initializes Terraform and optionally TFLint. Also configures caching.
Runs init as well as a variety of quality assurance checks including testing.
Finally you can choose a workspace and a module and exute the action you desire.
Here is a fully working and reusable GitHub Action Workflow. Simply copy this into your workflows.
The workflow_dispatch
is for running the job manually. The workflow_call
is for running the job in another workflow. This is useful to run a series of modules for one module in order. In this workflow we will reuse the single module three times to orchestrate our environment.
How to setup and apply Terraform stacks with GitHub Actions.