本文へ移動
cccskills
無料GitHub で公開日本語紹介

building-terraform-modules

AWS、GCP、Azure向けのTerraformモジュールを、変数や出力、検証ルール、利用例、ドキュメントを含めて組み立てるスキルです。

原文原文の説明を見る

Execute this skill empowers AI assistant to build reusable terraform modules based on user specifications. it leverages the terraform-module-builder plugin to generate production-ready, well-documented terraform module code, incorporating best practices for sec... Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

jeremylongshore/tons-of-skills-marketplaceスター 2,884(GitHub 2,884 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • クラウド構成をモジュール化したいとき
  • AWSのVPC設定を再利用したいとき
  • Terraformの変数と出力を整理したいとき

日本語での紹介

できること

クラウドのインフラ構成を再利用できる形にまとめるTerraformモジュールを作成するスキルです。管理するリソースと入力・出力を定め、main.tf、variables.tf、outputs.tf、versions.tfなどの標準的なファイル構成を用意します。変数には型や説明、既定値、検証ルールを設定し、リソースIDやエンドポイントなどを出力にまとめます。AWS、GCP、Azureのリソースを対象に、暗号化やパブリックアクセス制限などのセキュリティ設定、利用例、READMEのドキュメントも生成します。

こんなときに便利

複数のプロジェクトで使うクラウド構成を共通化したいときや、変数や出力を整理したモジュールを用意したいときに向いています。作成後の検証ではTerraformの初期化、検証、プランを行います。

使い方の例

  • 「CIDRやサブネット数を指定できるAWS VPCのモジュールを作ってください」
  • 「暗号化とアクセスログを設定できるS3バケットのモジュールを作ってください」
  • 「カスタムドメインと自動スケーリングに対応するCloud Runモジュールを作ってください」

注意点

Terraform 1.0以上と対象クラウドの認証情報が必要です。HCLやTerraformモジュールの基本知識も前提となります。ドキュメント生成に使うterraform-docsは任意です。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(5)

  • SKILL.md4.3 KB
  • assets/README.md451 B
  • assets/validation_rules.json3.6 KB
  • references/README.md67 B
  • scripts/README.md507 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Building Terraform Modules

Overview

Build reusable, production-ready Terraform modules with proper variable definitions, outputs, validation rules, documentation, and examples. Generate modules following HashiCorp's standard module structure for AWS, GCP, and Azure resources with security best practices, tagging conventions, and lifecycle management.

Prerequisites

  • Terraform 1.0+ installed (terraform version)
  • Cloud provider credentials configured for the target platform
  • Understanding of the infrastructure resources the module will manage
  • Familiarity with HCL syntax and Terraform module conventions
  • terraform-docs installed for automated documentation generation (optional)

Instructions

  1. Define the module scope: determine which cloud resources the module manages and its input/output contract
  2. Create the standard module file structure: main.tf, variables.tf, outputs.tf, versions.tf, locals.tf
  3. Write versions.tf with required_version and required_providers blocks pinned to stable versions
  4. Define input variables in variables.tf with descriptions, types, defaults, and validation rules
  5. Implement resources in main.tf using variables for all configurable values; use locals for computed values
  6. Add meaningful outputs in outputs.tf for resource IDs, ARNs, endpoints, and connection strings
  7. Implement security defaults: encryption enabled, public access blocked, least-privilege IAM, logging enabled
  8. Create an examples/ directory with at least one complete usage example showing module invocation
  9. Generate documentation with terraform-docs markdown table . > README.md
  10. Validate the module with terraform init && terraform validate and test with terraform plan using the example

Output

  • Module files: main.tf, variables.tf, outputs.tf, versions.tf, locals.tf
  • Example usage in examples/basic/main.tf with realistic variable values
  • Auto-generated README.md with inputs, outputs, and usage documentation
  • .terraform-docs.yml configuration for documentation generation
  • Optional: test files using Terratest or terraform test (HCL-based)

Error Handling

ErrorCauseSolution
variable validation failedInput value does not meet validation ruleCheck the validation block in variables.tf; adjust the value or the validation regex
provider not foundMissing or wrong provider source in versions.tfAdd the provider to required_providers with correct source and version constraint
circular dependencyResources referencing each other in a loopRefactor to break the cycle; use depends_on or separate into sub-modules
output references undeclared resourceTypo in resource name or resource removedVerify resource names in main.tf match output references exactly
module source not foundIncorrect module path or registry referenceVerify the source path is relative (e.g., ./modules/vpc) or a valid registry address

Examples

  • "Build a Terraform module for an AWS VPC with configurable CIDR, public/private subnets across 3 AZs, NAT gateway, and flow logs."
  • "Create a GCP Cloud Run module with custom domain, IAM bindings, and auto-scaling configuration as input variables."
  • "Generate a Terraform module for an S3 bucket with versioning, encryption, lifecycle rules, and access logging, with all settings as optional variables with secure defaults."

Resources

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

abridge-ci-integration

無料概要あり

Abridge連携コードのCIに合成データを使った回帰チェックを加え、同意状態、ノート確認、ログの秘匿、ロールバックなど顧客側の処理を検証します。

  • Abridge連携の回帰テストを追加したいとき
  • 同意やノート確認の処理を検証したいとき
  • ログに機微情報が出ないか確かめたいとき
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

abridge-common-errors

無料概要あり

Abridgeの録音、記録の確認、Epicへの引き渡し、アクセスの不具合を観測情報から切り分け、患者情報を抑えた証拠と担当窓口への引き継ぎ資料を整理するスキル。

  • 録音とアップロード障害の切り分け
  • 記録生成の遅延や編集画面の不具合調査
  • Epic連携障害の担当窓口の特定
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

abridge-core-workflow-a

無料概要あり

同意確認から録音、生成メモの根拠確認、編集、最終確定まで、臨床文書作成の手順と確認ポイントを整理するスキルです。

  • 診療メモ作成の手順を導入・監査したいとき
  • 同意から医師の確認までの流れを整理したいとき
  • 下書きの根拠確認と停止条件を定めたいとき
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

abridge-core-workflow-b

無料概要あり

Abridgeで臨床家が確認した記録内容が、承認済みの手順でEpicの適切なテンプレート欄へ渡るか、テスト記録を使って対応関係や例外を検証するスキルです。

  • AbridgeとEpicの記録欄の対応を確認したいとき
  • 部門ごとの連携設定を監査したいとき
  • 承認済みテスト記録で連携を検証したいとき
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

abridge-cost-tuning

無料概要あり

Abridgeの導入・更新判断に向け、利用定着率や業務の完了状況、診療記録の品質、支援負担を契約に基づく費用情報と照らし、継続や改善の選択肢を整理するスキル。

  • Abridge導入後の定着率確認
  • 契約更新の判断材料をまとめたいとき
  • 診療環境ごとの業務成果の比較
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

abridge-debug-bundle

無料概要あり

Abridgeの障害調査で、録音や診療記録を含めず、許可した項目だけを集めたサポート用資料と確認用マニフェストを作成します。

  • 障害サポート用の証拠をまとめたいとき
  • 共有資料の除外項目を記録したいとき
  • 調査情報を安全な経路で引き継ぎたいとき
jeremylongshore/tons-of-skills-marketplace2,8842026年10月29日 更新

jeremylongshore のスキルをすべて見る

このスキルの問題を報告する