Project

pangea-gcp

0.0
No release in over 3 years
Google Cloud provider resources for Pangea infrastructure DSL. Provides typed Terraform resource functions with Dry::Struct validation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 13.0
~> 3.12
~> 0.22

Runtime

 Project Readme

pangea-gcp

Google Cloud provider bindings for the Pangea infrastructure DSL.

Overview

Provides 25 typed Terraform resource functions for GCP, covering projects, Compute Engine, GKE, Cloud SQL, Cloud Storage, DNS, Pub/Sub, Cloud Run, IAM, Secret Manager, Redis, and Artifact Registry. Each resource uses Dry::Struct validation and compiles to Terraform JSON via terraform-synthesizer. Built on pangea-core.

Installation

gem 'pangea-gcp', '~> 0.1'

Usage

require 'pangea-gcp'

template :my_infra do
  provider :google do
    project "my-project"
    region  "us-central1"
  end

  network = google_compute_network(:main, { name: "my-vpc", auto_create_subnetworks: false })
  google_compute_subnetwork(:nodes, { name: "nodes", network: network.id, ip_cidr_range: "10.0.0.0/24", region: "us-central1" })
end

Development

nix develop
bundle exec rspec

License

Apache-2.0