petitviolet blog

    gcp (5 posts)

    Written by petitviolet

    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

    How to deploy a Next.js application running on Cloud Run via GitHub Actions

    2022-01-25GCPNext.jsCloud RunGitHub Actions
    Explain how to deploy a blog powered by Next.js to GCP Cloud Run through GitHub Actions
    As I posted before, this blog is running on GCP Cloud Run and also is built with Next.js. Previously, before migrating to Next.js from Gatsby, this blog used to get deployed automatically via GitHub Action

    Running a blog powered by Next.js on Cloud Run

    2021-12-28Next.jsGCPCloud Run
    Build a blog with Next.js and run it on GCP Cloud Run which is a managed platform for enabling users to run containers very easily
    This blog had been built with [Gatsby](, but I decided to migrate to [Next.js]( just for learning it. This post is going to describe what the arcitecture is and how to deploy this blog to [GCP Cloud Run]( which is a serverless platf

    GAE SE for Java8でStackdriver Loggingのログがずれる問題

    Google AppEngine Standard Environment for Java8 に乗せたアプリケーションで非同期処理しつつログ出力すると、 ログがリクエストに正しく紐付かずに別のリクエストのログとして出力されてしまう、という細かすぎて伝わらない問題と戦った話です。 なお言語は Scala で、[Skinny Micro](を使用。 まとめ まず結論。 GAE では独自のスレッドではなくThreadManager.createThreadForCurrentR