tfdc-module-search
Search the Terraform module registry using tfdc. Use when you need to find Terraform modules by keyword, discover available modules for a specific purpose (e.g., VPC, EKS, S3), or get module IDs for use with tfdc module get.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
tfdc module search
Search the Terraform module registry.
Usage
tfdc module search -query <keyword> [-offset 0] [-limit 20] [-format text]
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
-query |
Yes | Search query (e.g., vpc, eks, s3) |
|
-offset |
No | 0 |
Result offset for pagination |
-limit |
No | 20 |
Max results |
-format |
No | text |
Output format: text, json, markdown |
Output fields
| Field | Description |
|---|---|
module_id |
Module ID in namespace/name/provider/version format |
name |
Module name |
description |
Module description |
downloads |
Download count |
verified |
Whether the module is verified |
published_at |
Publication timestamp |
Examples
# Search for VPC modules
tfdc module search -query vpc
# Search with JSON output
tfdc module search -query eks -format json
# Paginated search
tfdc module search -query s3 -offset 20 -limit 10
JSON output
{
"items": [
{
"module_id": "terraform-aws-modules/vpc/aws/6.6.0",
"name": "vpc",
"description": "Terraform module to create AWS VPC resources",
"downloads": 168103660,
"verified": false,
"published_at": "2026-01-08T19:16:31.278629Z"
}
],
"total": 1
}
Workflow
Use with tfdc module get to fetch full module details:
# Search
tfdc module search -query vpc -format json | jq '.items[].module_id'
# Get details
tfdc module get -id terraform-aws-modules/vpc/aws/6.6.0
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!