dougthor42 / gcp_playground

Messing with GCP and perhaps Terraform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Cloud Platform Playground

Me just messing around with GCP and various things.

Goal:

  • Make sure I have some kind of personal reference for building and using GCP so that, should I leave Google, I can do similar things from scratch.

Items:

  • IAM: Create some kind of service account for code to upload things to GCP.
  • Cloud logging is a big one.
  • Upload to GCS
  • PubSub GCS & Cloud Functions
  • Cloud Function: trigger on GCS file, write data to database.
  • Perhaps upload to Drive
  • Protobuf

Perhaps do most of the above with Terraform, too. Partially to learn TF, partially so that I can tear down everything and not get billed 😉.

Terraform

Installing

See the official docs, but the TL;DR is:

  1. Install some prereqs:
    sudo apt update && sudo apt install -y gnupg software-properties-common
  2. Install the Hashicorp GPG key:
    wget -O- https://apt.releases.hashicorp.com/gpg | \
    gpg --dearmor | \
    sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
  3. Add the Hashicorp repo:
    echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
    https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
    sudo tee /etc/apt/sources.list.d/hashicorp.list
  4. Install
    sudo apt update && sudo apt install terraform
  5. Install tab completion
    terraform -install-autocomplete

About

Messing with GCP and perhaps Terraform.


Languages

Language:HCL 100.0%