GithubHelp home page GithubHelp logo

isabella232 / terraform-iac-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doitintl/terraform-iac-demo

0.0 0.0 0.0 585 KB

GitOps demo of Terraform infrastructure as code (IaC)

Shell 8.39% HCL 91.61%

terraform-iac-demo's Introduction

Change management has evolved given infrastructure is now API-driven. Traditionally ITIL change management required maintaining separate systems for compliance, but modern organizations leverage GitOps and infrastructure as code (IaC) tools to automate and streamline processes as demonstrated in this repo.

Modern Change Management

At DoiT International we advise cloud customers to implement modern change management using automated, self-documenting, processes as illustrated below.

GitOps IaC Change Management

Prerequisites

Using this example assumes you have the following in place:

Install

# set config
gcloud config set project <project-id>

# clone repo (or fork it)
git clone [email protected]:doitintl/terraform-iac-demo.git
cd terraform-iac-demo

# reset git so you can push to your own repo
rm -rf .git
git init

# initialize project
./bin/setup.sh

Configure

You will need to create a Git source code repository and connect it to Google Cloud Build as instructed below. Connect Github repository to Cloud Build

Usage

Once you make sure you connect the repository for Cloud Build, and create a push trigger, you can then commit, set your remote, and push your code. This should trigger a build and Terraform tasks will run. See the document above (although dated and this repo is updated for later Terraform versions) for tips.

Automated builds

Clean up

If you are just testing this functionality, to avoid incurring unnecessary cloud billing charges be sure to delete your project or follow these steps:

  1. edit main.tf in /prod and /dev folder and remove modules
  2. commit and push changes to trigger infrastructure changes
  3. run the ./bin/teardown.sh after resources removed

Contributing

This repository is maintained by the staff at DoiT International

terraform-iac-demo's People

Contributors

mikesparr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.