Skip to content

daniel-orlov/quotes-infra

Repository files navigation

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' ' '

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages