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 😉.
See the official docs, but the TL;DR is:
- Install some prereqs:
sudo apt update && sudo apt install -y gnupg software-properties-common
- Install the Hashicorp GPG key:
wget -O- https://apt.releases.hashicorp.com/gpg | \ gpg --dearmor | \ sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
- 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
- Install
sudo apt update && sudo apt install terraform
- Install tab completion
terraform -install-autocomplete