Terraform Module Creator: Install, Source and Security | FunnelSlayer

Terraform Module Creator

Published by first-fluke in fullstack-starter

No known issues12 installs

What this skill does

Helper for scaffolding new Terraform modules. Complements terraform-module-library by providing structure generation.

Add Terraform Module Creator to your agent

Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.

Install with a prompt

Paste this into a compatible coding agent:

add this skill "terraform-module-creator" from https://github.com/first-fluke/fullstack-starter

Install with the CLI

Run this command in a controlled environment after reviewing the repository:

npx skills add https://github.com/first-fluke/fullstack-starter --skill terraform-module-creator

Skill instructions

Terraform Module Creator

This skill assists in scaffolding new Terraform modules following the standards defined in terraform-module-library.

Quick Start

To create a new module, you should create the following directory structure:

mkdir -p modules/<module-name>
touch modules/<module-name>/{main,variables,outputs,versions}.tf
touch modules/<module-name>/README.md

Template Files

versions.tf

terraform {
  required_version = ">= 1.0"
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = ">= 4.0"
    }
  }
}

variables.tf

variable "project_id" {
  description = "The project ID"
  type        = string
}

outputs.tf

output "id" {
  description = "The ID of the created resource"
  value       = google_resource.main.id
}

Relationship with terraform-module-library

  • Use terraform-module-creator (this skill) for the initial file creation and setup.
  • Use terraform-module-library for design patterns, best practices, and internal code logic.

Files included

  • SKILL.md

More skills