DEV Community

Ari ๐Ÿช
Ari ๐Ÿช

Posted on

Building and Testing Infrastructure with Github Actions ๐Ÿ—

My Workflow

I've been learning a bit about Terraform this past month and thought it would be cool to leverage IaC in a CI/CD environment with GitHub Actions!

My workflow runs terratest to test the infrastructure then initializes, formats, plans, and applies changes based on the Terraform configuration. Changes are applied after a pull request has been merged.

To ensure Terraform runs in the correct directory the commit and PR message should be the directory name.

Submission Category:

DIY Deployments

Link to Code

GitHub logo ari-hacks / infra-github-actions

Testing and provisioning infrastructure with Terraform and Github Actions

infra-github-actions




Actions used in my workflow

Top comments (0)