Deploy Infrastructure
warning
Before you begin, ensure you've completed the Setup Steps to set environment variables and clone a repo that this section requires.
To deploy the required infrastructure into your GCP environment, use the provided script in our deployment-playbooks repo.
./gcp/deploy/deploy-infrastructure.sh
If you'd like to understand more about exactly what the script is doing, open it in your IDE of choice and review the comments which explain what is being deployed at each step.
The first part of this script will attempt to enable the following GCP Services in your project which are required for the deployment.
- Compute Engine API, for creating the virtual network.
- Service Networking API, to allow us to automatically manage networking.
- Kubernetes Engine API, to allow us to deploy a Google Kubernetes Engine (GKE) cluster.
- Cloud SQL API, to allow us to deploy a managed Cloud SQL PostgreSQL instance.
- Google Cloud Memorystore for Redis API, to allow us to deploy a managed Redis instance.
- Cloud DNS API, to allow us to create the required DNS records for the services.
- IAM API, to allow us to manage IAM roles and service accounts.
This process will fail if you haven't linked the project to a billing account, which enables you to pay for the resources you deploy.