DEV Community

Ari πŸͺ
Ari πŸͺ

Posted on

5 3

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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay