Giter VIP home page Giter VIP logo

gcp-lz-hub-n-spoke's Introduction

gcp-lz-hub-n-spoke

Privileges needed for development

  1. Billing Account User (roles/billing.user)
  2. Compute Network Admin (roles/compute.networkAdmin)
  3. Compute Shared VPC Admin (roles/compute.xpnAdmin)
  4. Folder Admin (roles/resourcemanager.folderAdmin)
  5. Organization Administrator (roles/resourcemanager.organizationAdmin)
  6. Organization Policy Administrator (roles/orgpolicy.policyAdmin)
  7. Project Creator (roles/resourcemanager.projectCreator)
  8. Project Deleter (roles/resourcemanager.projectDeleter)

How to deploy to your own landingzone folder using Cloud Shell

You can skip straight to the environment folder for workload development (recommended). You need capacity for 20 new projects to deploy from start to finish. Please note: you can't deploy the organizational groups or billing modules to a folder, so skip them.

Pull and configure repo

  1. create a landing zone folder and a bootstrap/pipeline project for making API calls
  2. gcloud config set project PROJECT_ID
  3. configure git and fetch repo
git config --global user.email "emailaddress"
git config --global user.name "name"
git config --global init.defaultBranch main
gcloud source repos clone gcp-lz-hub-n-spoke --project=ultra-heading-383615
cd gcp-lz-hub-n-spoke
git fetch --all
git checkout main

Deploy repo using terraform (skip group and billing modules for folder deployments)

  1. cp env.local .env.local
  2. vi .env.local
  3. source .env.local
  4. in numeric order loop through each folder executing terraform init && terraform apply
  5. you may need to update and source .env.local with terraform outputs from previous folders (composition)
  6. add environment variables to a pipeline to implement your CI/CD of choice for each folder/module

gcp-lz-hub-n-spoke's People

Contributors

desmatic avatar desmatic-capgemini avatar cgdesjones avatar

Watchers

 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.