CI/CD automation

What you’ll do in this module:

  • Pipeline architecture. How plan and apply stages map to pull requests and merges.
  • GitHub Actions workflow. A complete workflow that plans on PRs and deploys on merge.
  • Secrets and variables. Securely storing and referencing Grafana credentials in CI/CD.
  • Reliable deployments. How Terraform state prevents drift, duplicates, and conflicts.
  • Key takeaways. The most important principles to remember.
  • Resources. Documentation and references for continued learning.

Estimated time: 15 minutes

Script

You’ve deployed alerting resources to Grafana with Terraform manually. Module three takes that workflow and automates it with CI/CD, then wraps up the journey.

In module two, you learned how to define Grafana resources as code, explored the Terraform provider’s resource catalog, broke down alert rules, contact points, and notification policies in HCL, and deployed them with plan and apply. Now you’ll wire that same workflow into a GitHub Actions pipeline so resources deploy automatically on every merge. You’ll also learn how to manage secrets securely and how Terraform’s state management keeps deployments reliable. Then you’ll review the key takeaways and resources for continued learning. Budget about fifteen minutes for this module.