This repository contains Terraform code and shell scripts for provisioning and managing GCP resources using GCP Infrastructure Manager.
Before you can use this Terraform code, ensure that you have the following prerequisites installed:
To get started with this proposal, follow these steps:
- Clone the repository:
git clone https://github.com/g-awmalik/pandora-im-deployments.git
- Setup environment variables:
Edit env_setup.sh and fill in values for:
- Your organization ID
- The folder ID under which you plan to create resources for this solution
- The billing account you intended to use for creating new projects
source ./scripts/env_setup.sh
- Setup bootstrap resources:
cd bootstrap
terraform init
terraform apply --auto-approve
cd ..
source ./scripts/tf_outputs.sh bootstrap
Note: Before proceeding give the pdr-im-org-setup
service account roles/billing.user
on the billing account you plan to use.
- Setup Org Hierarchy:
./1_org_hierarchy.sh
source ./scripts/tf_outputs_im.sh org-hierarchy
- Setup Platform Service Accounts:
./2_sa_platform.sh
source ./scripts/tf_outputs_im.sh sa-platform
Note: Before proceeding give the pdr-sa-app-dev
& pdr-sa-app-prod
service accounts
roles/billing.user
on the billing account you plan to use. These two service accounts
will be creating projects in the development and production folder respectively.
- Setup Secrets:
./3_secrets.sh
- Setup Shared VPC:
./5_shared_vpc.sh
- Setup Development Application Projects:
./6_app_dev.sh
This repository is licensed under the Apache 2.0 License.