npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@androbinco/robin-terraform

v0.3.6

Published

CLI tool to fetch Terraform configurations for GCP and AWS services

Downloads

64

Readme

Robin Terraform CLI

CLI tool to fetch Terraform configurations for GCP and AWS services. Includes SOC2-compliant security layers.

Installation

Global Installation (Recommended)

# Using npm
npm install -g @androbinco/robin-terraform

# Verify installation
robin-terraform --version

Using npx (No Installation Required)

npx @androbinco/robin-terraform fetch gcp cloudrun
npx @androbinco/robin-terraform list

Uninstall

npm uninstall -g @androbinco/robin-terraform

Quick Start

# Interactive mode - guided selection
robin-terraform fetch

# Direct fetch
robin-terraform fetch gcp database

# List all available services
robin-terraform list gcp

Available Services

GCP Core Services

| Service | Description | |---------|-------------| | cloudrun | Cloud Run service deployment | | lb | Load Balancer configuration | | cloudbuild | Cloud Build CI/CD pipeline | | bucket | Cloud Storage buckets | | database | Cloud SQL instance |

GCP SOC2 Security Layers

| Service | Description | |---------|-------------| | soc-layers/vpc | Private VPC network | | soc-layers/private-service-connection | VPC peering for Cloud SQL private IP | | soc-layers/vpc-connector | Serverless VPC Access for Cloud Run | | soc-layers/firewall | SOC2 firewall rules (blocks DB ports) | | soc-layers/cloud-armor | DDoS protection with rate limiting |

Usage

Fetch Terraform Configuration

# Interactive mode
robin-terraform fetch

# Fetch specific service
robin-terraform fetch gcp cloudrun
robin-terraform fetch gcp database

# Fetch SOC2 security layers
robin-terraform fetch gcp soc-layers/vpc
robin-terraform fetch gcp soc-layers/firewall
robin-terraform fetch gcp soc-layers/cloud-armor

Specify Target Directory

robin-terraform fetch gcp cloudrun --path ./infrastructure
robin-terraform fetch gcp soc-layers/vpc --path ./security/vpc

Force Overwrite

robin-terraform fetch gcp cloudrun --force

List Available Configurations

# List all providers and services
robin-terraform list

# List services for specific provider
robin-terraform list gcp

# Show all with --list flag
robin-terraform fetch --list

Preview Configuration Files

# List files in a configuration
robin-terraform show gcp cloudrun

# View specific file
robin-terraform show gcp cloudrun main.tf
robin-terraform show gcp soc-layers/vpc variables.tf

Clean Up

# Remove terraform directory
robin-terraform clean

# Remove specific directory
robin-terraform clean --path ./infrastructure

SOC2 Security Layers - Deployment Order

When deploying the SOC2 security layers, follow this order:

1️⃣ vpc                          → Base network (deploy first)
    │
    ├── 2️⃣ private-service-connection  → Enables Cloud SQL private IP
    │
    ├── 2️⃣ vpc-connector               → Connects Cloud Run to VPC
    │
    └── 2️⃣ firewall                    → Blocks dangerous ports

3️⃣ cloud-armor                  → Rate limiting (independent)

Prerequisites for SOC2 Layers

Before deploying, assign this IAM role to your service account:

gcloud projects add-iam-policy-binding PROJECT_ID \
  --member="serviceAccount:SERVICE_ACCOUNT_EMAIL" \
  --role="roles/resourcemanager.projectIamAdmin"

Example: Full SOC2 Deployment

# 1. Deploy VPC
robin-terraform fetch gcp soc-layers/vpc --path ./1-vpc
cd 1-vpc && terraform init && terraform apply
VPC_ID=$(terraform output vpc_id)
cd ..

# 2. Deploy Private Service Connection
robin-terraform fetch gcp soc-layers/private-service-connection --path ./2-psc
cd 2-psc && terraform init && terraform apply
cd ..

# 3. Deploy VPC Connector
robin-terraform fetch gcp soc-layers/vpc-connector --path ./3-connector
cd 3-connector && terraform init && terraform apply
cd ..

# 4. Deploy Firewall Rules
robin-terraform fetch gcp soc-layers/firewall --path ./4-firewall
cd 4-firewall && terraform init && terraform apply
cd ..

# 5. Deploy Cloud Armor
robin-terraform fetch gcp soc-layers/cloud-armor --path ./5-armor
cd 5-armor && terraform init && terraform apply
cd ..

Complete Workflow Example

Basic Service Deployment

# 1. Create project directory
mkdir my-api && cd my-api

# 2. Get Terraform config
robin-terraform fetch gcp cloudrun

# 3. Configure and deploy
cd terraform
# Edit variables.tf with your values
terraform init
terraform plan
terraform apply

# 4. Clean up when done
cd ..
robin-terraform clean

Multi-Service Deployment

# API service
robin-terraform fetch gcp cloudrun --path ./services/api

# Load Balancer
robin-terraform fetch gcp lb --path ./services/lb

# Database
robin-terraform fetch gcp database --path ./services/database

# Storage
robin-terraform fetch gcp bucket --path ./services/storage

Secure Infrastructure Deployment

# 1. Security layers first
robin-terraform fetch gcp soc-layers/vpc --path ./infra/vpc
robin-terraform fetch gcp soc-layers/firewall --path ./infra/firewall

# 2. Database with private IP
robin-terraform fetch gcp soc-layers/private-service-connection --path ./infra/psc
robin-terraform fetch gcp database --path ./infra/database

# 3. Application with VPC connector
robin-terraform fetch gcp soc-layers/vpc-connector --path ./infra/connector
robin-terraform fetch gcp cloudrun --path ./infra/app

# 4. Protection layer
robin-terraform fetch gcp soc-layers/cloud-armor --path ./infra/armor

Command Reference

| Command | Options | Description | |---------|---------|-------------| | fetch | --path, -p | Target directory (default: ./terraform) | | fetch | --force, -f | Overwrite existing directory | | fetch | --list, -l | List all providers and services | | list | [provider] | List services (optional: specific provider) | | show | <provider> <service> [file] | Preview configuration files | | clean | --path, -p | Remove directory (default: ./terraform) |

Tips

  • Always review variables.tf after fetching to set your project-specific values
  • Review readme.txt in each module for IAM role requirements
  • Use --path flag to organize multiple terraform configurations
  • Run terraform plan before apply to review changes
  • Keep your terraform state files in a remote backend (GCS, S3) for team collaboration
  • Deploy SOC2 layers in the correct order (VPC first)

Updating

# Check current version
robin-terraform --version

# Update to latest
npm update -g @androbinco/robin-terraform

Troubleshooting

Version conflicts with pnpm

If you have version conflicts between npm and pnpm:

# Remove pnpm binary
rm $(which robin-terraform)

# Reinstall with npm
npm install -g @androbinco/robin-terraform@latest

Verify installation path

which robin-terraform
robin-terraform --version

License

MIT