terraform-gcp-expert

Review and design Terraform configurations for Google Cloud Platform resources.

Updated Dec 4, 2025
One-click install
npx skills add https://github.com/hiroto0701/dotfiles --skill terraform-gcp-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-gcp-expert
Source: https://github.com/hiroto0701/dotfiles/tree/main/private_dot_claude/skills/terraform-gcp-expert
Command: npx skills add https://github.com/hiroto0701/dotfiles --skill terraform-gcp-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide and best practices for writing, reviewing, and designing Terraform configurations specifically for Google Cloud Platform (GCP) resources, ensuring robust, secure, and maintainable infrastructure as code.

Core Features & Use Cases

  • GCP Resource Patterns: Offers HCL code examples for common GCP services like Cloud Run, Cloud SQL, Cloud Storage, VPC, and Secret Manager.
  • Best Practices: Enforces naming conventions, IAM least privilege, state management with GCS, environment separation, and secure secret handling.
  • Module Design: Provides a recommended directory structure for organizing Terraform modules and environments.
  • Use Case: When developing a new microservice on GCP using Cloud Run and Cloud SQL, this Skill will guide you through setting up the Terraform configuration, including provider setup, resource definitions, IAM roles, and secret management, ensuring adherence to best practices.

Quick Start

Use the terraform-gcp-expert skill to generate a basic Terraform configuration for a Cloud Run service in GCP.

Frequently Asked Questions about terraform-gcp-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Terraform configurations for Cloud Run and Cloud SQL on GCP?

To structure Terraform configurations for Cloud Run and Cloud SQL on GCP, use a modular directory layout that separates environments and resources. This approach enforces naming conventions, IAM least privilege, and secure secret handling for production-ready deployments.

What's the best way to manage Terraform state and secrets for GCP infrastructure?

The best way to manage Terraform state for GCP infrastructure is using remote state management with GCS. For secure secret handling, use Secret Manager to enforce strict security checklists and maintain environment separation.

How do I apply IAM least privilege when writing Terraform for Google Cloud Platform?

To apply IAM least privilege in Terraform for Google Cloud Platform, define granular IAM roles directly within your HCL configurations. This ensures service accounts and resources only receive the minimum permissions required to operate.

Can I use Terraform modules for environment separation across GCP VPC networking and Cloud Storage?

Yes, you can use Terraform modules for environment separation across GCP VPC networking and Cloud Storage. Designing reusable modules with a recommended directory structure allows you to maintain distinct configurations for different deployment environments.

When do I need remote state management with GCS for Terraform IaC?

You need remote state management with GCS for Terraform IaC when deploying production-ready infrastructure. It provides secure, centralized state tracking that prevents conflicts and supports robust environment separation strategies.