petitviolet blog

    terraform (3 posts)

    icon
    Written by petitviolet

    Terraform to provision GCP CDN for GCS backend

    2023-02-20TerraformGCP
    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 variables.tf but use locals here instead for simplicity

    GCP IAP protected Cloud Run Application by Terraform

    2023-01-18GCPCloudRunTerraform
    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. https://cloud.google.com/iap 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

    2022-06-30TerraformGCP
    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](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account_iam) - google_service_account_iam_policy - google_servi