Skip to main content

Google Cloud Foundation Fabric: Serverless HCL Refactoring & Validation (PR #3881)

179 words·1 min· loading · loading · ·
Vijay Kumar Singh
Open Source Terraform GCP Cloud-Functions iac HCL Open-Source
Vijay Kumar Singh
Author
Vijay Kumar Singh
Certified Kubernetes Administrator (CKA) & Google Cloud ACE | Cloud, DevOps & Site Reliability Engineer specializing in Kubernetes (GKE/AKS/k3s), Terraform, ArgoCD GitOps, and Enterprise Observability.
Table of Contents

Project Overview
#

Contributed module enhancements to Google Cloud Foundation Fabric (CFF), an open-source enterprise suite of Terraform modules developed and maintained by Google Cloud. CFF serves as the foundation for enterprise cloud landing zones, organization policy baselines, and cloud infrastructure on GCP.

Hands-On Experience
#

  • Modernized cloud-function-v2 Terraform HCL module schema to support Cloud Functions v2 Runtime Update Policies (Automatic vs. On-Deploy)
  • Refactored function_config variable blocks using modern Terraform standards (nullable = false, default = {}, and optional() type attributes)
  • Designed shift-left HCL validation rules enforcing mutual exclusivity between policies during terraform plan, preventing GCP API apply errors
  • Configured HCL dynamic blocks inside google_cloudfunctions2_function resource definitions for clean conditional rendering
  • Authored integration test suites (automatic-update-policy.yaml) and regenerated module documentation via Python tools

Tech Stack
#

  • Infrastructure as Code: Terraform, HCL (HashiCorp Configuration Language)
  • Cloud Platform: Google Cloud Platform (GCP)
  • Serverless Compute: Cloud Functions v2, Cloud Run
  • CI/CD & Testing: YAML integration test suites, Git, GitHub Actions

Project Links #


Merged Pull Request #3881

Reply by Email