petitviolet blog

    terraform (3 posts)

    Written by petitviolet

    Terraform to provision GCP CDN for GCS backend

    Provision CDN on GCS in GCP using Terraform
    Google Cloud offers CDN(content delivery/distributed network) that can be backed by Cloud Storage, a.k.a GCS. Terraform supports provisioning CDN in GCP as always. As well as the previous post, in Terraform, variables should be declared in but use locals here instead for simplicity

    GCP IAP protected Cloud Run Application by Terraform

    Terraform to build a Cloud Run Application protected by GCP Identity-Aware Proxy
    Google Cloud(GCP) has Identity-Aware Proxy that uses ID and contexts to protect applications and VMs from unexpected access. Thanks to IAP, it's a way easy to protect an application running on Cloud Run by requiring Google login within the organization, for example.

    Terraform to manage GCP Service Accounts

    Terraform provides a few methods for managing Service Accounts in GCP. This post attempts to describe how to create Service Accounts in a good manner.
    The Google provider of Terraform has some mechanisms to manage Service Accounts in GCP as followings. - [google_service_account_iam]( - google_service_account_iam_policy - google_servi