Loading...
Loading...
Compare original and translation side by side
| Term | Definition |
|---|---|
| module | A self-contained Terraform/OpenTofu unit with variables, resources, and outputs |
| manifest | A Kubernetes YAML resource definition |
| chart | A Helm package containing templated K8s manifests |
| stage | A Docker build stage in a multi-stage Dockerfile |
| resource | A cloud infrastructure primitive (instance, bucket, network, etc.) |
| misconfiguration | A security or reliability issue in IaC (open ports, missing encryption, no limits) |
| cost-relative | Comparison between resource types/tiers, NOT absolute dollar pricing |
| hardening | Applying security best practices to reduce attack surface |
| drift | Difference between declared IaC state and actual infrastructure |
| blast radius | How many dependent resources would be affected by a change |
| 术语 | 定义 |
|---|---|
| module | 包含变量、资源和输出的独立Terraform/OpenTofu单元 |
| manifest | Kubernetes YAML资源定义文件 |
| chart | 包含模板化K8s清单的Helm包 |
| stage | 多阶段Dockerfile中的Docker构建阶段 |
| resource | 云基础设施基础组件(实例、存储桶、网络等) |
| misconfiguration | IaC中的安全或可靠性问题(开放端口、缺失加密、无资源限制等) |
| cost-relative | 资源类型/层级之间的对比,非绝对美元定价 |
| hardening | 应用安全最佳实践以缩小攻击面 |
| drift | 声明的IaC状态与实际基础设施之间的差异 |
| blast radius | 变更会影响到的依赖资源数量 |
| $ARGUMENTS | Mode |
|---|---|
| Generate Terraform/OpenTofu modules |
| Generate K8s manifests and Helm charts |
| Optimize Dockerfiles (multi-stage, caching, security) |
| Audit IaC for correctness and best practices |
| Cost-relative estimation (compare resource types) |
| Security scan for IaC misconfigurations |
| Empty | Show mode menu with examples |
| 参数 | 模式 |
|---|---|
| 生成Terraform/OpenTofu模块 |
| 生成K8s清单和Helm Chart |
| 优化Dockerfile(多阶段构建、缓存、安全) |
| 审核IaC的正确性与最佳实践 |
| 相对成本估算(对比资源类型) |
| 扫描IaC中的配置错误 |
| 无参数 | 显示包含示例的模式菜单 |
uv run python scripts/terraform-module-scanner.py <path>.tfmain.tfvariables.tfoutputs.tfversions.tf.tfuv run python scripts/terraform-module-scanner.py <path>main.tfvariables.tfoutputs.tfversions.tfreferences/terraform-patterns.md~>for_eachcountNameEnvironmentManagedBy = "terraform"~>for_eachcountNameEnvironmentManagedBy = "terraform"references/cloud-equivalents.mduv run python scripts/k8s-manifest-validator.py <path>uv run python scripts/k8s-manifest-validator.py <path>values.yamlvalues.yamlreferences/kubernetes-patterns.mduv run python scripts/dockerfile-analyzer.py <path>latestuv run python scripts/dockerfile-analyzer.py <path>latestCOPY . .references/dockerfile-guide.md.tfterraform-module-scanner.pyk8s-manifest-validator.pydockerfile-analyzer.py.tfterraform-module-scanner.pyk8s-manifest-validator.pydockerfile-analyzer.pyreferences/security-hardening.mdreferences/cloud-equivalents.mdreferences/cost-comparison.mdreferences/security-hardening.mdtemplates/dashboard.html{
"view": "iac-overview",
"resources": [...],
"findings": [...],
"dockerfile_layers": [...],
"cost_comparison": [...]
}templates/dashboard.html{
"view": "iac-overview",
"resources": [...],
"findings": [...],
"dockerfile_layers": [...],
"cost_comparison": [...]
}| File | Content | Read When |
|---|---|---|
| Module patterns, state management, provider config | Terraform mode |
| Resource patterns, Helm conventions, scaling | Kubernetes mode |
| Multi-stage builds, layer optimization, distroless | Docker mode |
| AWS/GCP/Azure resource mapping | Cost mode, multi-cloud generation |
| IaC security checklist by category | Security mode, Review mode |
| Relative cost tiers and trade-offs | Cost mode |
| Script | When to Run |
|---|---|
| Docker mode, Review mode (Dockerfiles) |
| Terraform mode, Review mode (.tf files) |
| Kubernetes mode, Review mode (K8s YAML) |
| Template | When to Render |
|---|---|
| After review, cost, or security scan |
| 文件 | 内容 | 加载时机 |
|---|---|---|
| 模块模式、状态管理、提供商配置 | Terraform模式 |
| 资源模式、Helm约定、伸缩策略 | Kubernetes模式 |
| 多阶段构建、镜像层优化、Distroless | Docker模式 |
| AWS/GCP/Azure资源映射 | 成本模式、多云生成 |
| 按类别划分的IaC安全检查清单 | 安全模式、审查模式 |
| 相对成本层级与权衡 | 成本模式 |
| 脚本 | 运行时机 |
|---|---|
| Docker模式、审查模式(Dockerfile) |
| Terraform模式、审查模式(.tf文件) |
| Kubernetes模式、审查模式(K8s YAML) |
| 模板 | 渲染时机 |
|---|---|
| 审查、成本或安全扫描完成后 |
latestfor_eachcountlatestfor_eachcount