example project to use terraform with Google Cloud Project Factory to provision accounts
cloud/GCP-Terraform-Cloud-Project-Factory
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
- Open with GitHub Desktop
- Download ZIP
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Files
Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Example account provisioning based off Google Cloud Project Factory Terraform Module https://github.com/terraform-google-modules/terraform-google-project-factory Look at the GCP enterprise onboarding documentation for greater details of initial setup of GCP, also the example use case requires some folder structure based on security risk, but modifiy it what ever structure best fits your organization. Use existing Script in the terraform-google-project-factory git project to deploy project with rights to be central to provisioning. Suggest looking at running a small host with ONLY access via the IAP (Identity Aware Proxy) and storing the generated secret in GCP Secrets, auto patching and such to keep system secure. Lay out on the provisioning host: we keep a copy of the terraform binary in /provisioning/bin Configuration repo with three folders mapping to three risk levels (inspired by NIST 800-53) /provisioning/GCP-provisioning/ (this repo) /provisioning/GCP-provisioning/low-risk /provisioning/GCP-provisioning/medium-risk /provisioning/GCP-provisioning/high-risk /provisioning/GCP-provisioning/template-low ==== Our implementation using Git as master of all configuration ==== Initial setup: organizationID: ######### Project ID: project Billing account ID: ######-######-###### folder ID: ############ Example workflow: git status cp -r template-low/ low-risk/test2 cd low-risk/test2 vim terraform.tfvars project_name cd /provisioning/gcp-provisioning/low-risk/test2 /provisioning/bin/terraform init /provisioning/bin/terraform validate /provisioning/bin/terraform plan /provisioning/bin/terraform apply git add . git commit -m "added gcp project for CUSTOMER" git push
About
example project to use terraform with Google Cloud Project Factory to provision accounts
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published