Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 1.52 KB

README.md

File metadata and controls

55 lines (46 loc) · 1.52 KB

quotes-infra

Infrastructure for the quotes-server project.

Requirements

NB: The very first run

Due to the fact that the first time you run the terraform commands against a new project, you will not have some important APIs enabled, you might need to enable them manually through the UI console or CLI. This is a one-time action, and you will not need to do it again. Bear in mind that enabling APIs might take some time, so you might need to wait a bit before running the commands again.

You will need to enable the following APIs in UI:
- Cloud Resource Manager API
- Compute Engine API
- Cloud DNS API
- Cloud Run API
- IAM API

Or through CLI by running the following commands:

gcloud services enable \
cloudresourcemanager.googleapis.com \
compute.googleapis.com \
dns.googleapis.com \
run.googleapis.com \
iam.googleapis.com

Useful commands

Set gcloud project

gcloud config set project quotes-test-assignment

Authentication for docker

gcloud auth configure-docker \
europe-north1-docker.pkg.dev

Add GOOGLE_CREDENTIALS in TFCloud

To strip from new line -

cat key.json | tr -s '\n' ' '