/gitops-terraform-jenkins

GitOps Workflow with Jenkins and Terraform

Primary LanguageHCLMIT LicenseMIT

gitops-terraform-jenkins

Overview

This repository will demonstrate an example GitOps workflow with Terraform and Jenkins.

The configuration in this repository was run using Terraform v0.11.13.

Video can be found here:

https://youtu.be/qFjGqPw1NUY

Requirements

  • Terraform installed on Jenkins
  • Correct plugins installed on Jenkins
  • GitHub access token
  • AWS credentials
  • S3 bucket

Setup Bucket

You will need to create a bucket and reference the bucket name in the following section of main.tf:

terraform {
  backend "s3" {
    bucket = "terraform-bucket-alex"
    key    = "terraform.tfstate"
    region = "us-east-1"
  }
}

Plugins Required

Questions?

Open an issue.