Project Overview #
Google Cloud Foundation Fabric (CFF) is an open-source, enterprise-grade suite of Terraform modules developed and maintained by Google. It serves as the foundation for enterprise landing zones and cloud infrastructure on Google Cloud Platform.
I contributed to the cloud-function-v2 module by adding explicit support for Cloud Functions v2 Runtime Update Policies (Automatic vs. On-Deploy updates).
Key Technical Contributions #
- HCL Schema Modernization: Refactored
function_configvariable definitions to use modern Terraform standards (nullable = false,default = {}, andoptional()attributes). - Shift-Left Validation: Implemented native HCL
validationblocks to enforce mutual exclusivity between automatic and on-deploy policies duringterraform plan, preventing downstream GCP API apply failures. - Dynamic Blocks: Utilized dynamic blocks inside
google_cloudfunctions2_functionresources to render configuration blocks only when explicitly requested. - CI/CD Testing & Docs: Wrote YAML example-based tests (
automatic-update-policy.yaml) and used Google’s Python documentation generator to update the moduleREADME.md.