Giter Club home page Giter Club logo

infra-controller's Introduction

GCP Infrastructure Controller

This repository provides a step by step tutorial to create the infrastructure foundations for a GCP organization. The intended use case is an enterprise customer deploying workloads into GCP.

Enterprises typically have centralized infrastructure, for example one prod and one nonprod environment each with a Shared VPC network, Hybrid Connectivity, Firewall Rules, Organization Policies, IAM policies, and Logging configuration.

Application teams develop changes in their own service projects using the nonprod infrastructure. Changes are ultimately deployed into the production environment.

The infrastructure controller provides a smooth on-ramp to manage the prod and nonprod centralized infrastructure using CI/CD and Terraform Infrastructure as Code techniques.

What you will build

  • One environment, nonprod, with:
  • An infra-controller Service Account to manage the shared infrastructure for the environment.
  • A GCS Bucket to hold Terraform state for the environment.
  • A GitLab Runner to execute Terraform in a CI/CD pipeline.

Additional environments, e.g. prod, may be created by repeating this process.

Note: The runner is intended solely to control the infrastructure, it should not be shared with development teams because the runner has access to a service account with elevated access across the GCP organization.

What you need

  • A newly created GCP project. For example, infra-controller-nonprod with a project id of infra-controller-nonprod-123456.
  • Owner of the project.
  • A GitLab Runner registration token

Tutorial

Execute these tutorials in order to get started.

Step Description Run
State Bucket Create a state bucket Open in Cloud Shell
Service Account Create a service account for Terraform TODO
GitLab Runner Create GitLab runners to execute Terraform TODO

infra-controller's People

Contributors

jeffmccune avatar

Watchers

 avatar  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.