首页/云计算与基础设施/terraform-azurerm-set-diff-analyzer
T

terraform-azurerm-set-diff-analyzer

by @githubv
4.5(295)

分析AzureRM Provider的Terraform计划JSON输出,区分假阳性差异(如Set类型属性的顺序变化),确保准确识别配置变更。

terraformazurerm-providerinfrastructure-as-codedrift-detectiondeployment-analysisGitHub
安装方式
npx skills add github/awesome-copilot --skill terraform-azurerm-set-diff-analyzer
compare_arrows

Before / After 效果对比

1
使用前

Terraform计划输出中常出现假阳性差异,如Set类型属性顺序变化,导致难以准确判断真实配置变更。这增加了审查负担,可能误判风险。

使用后

分析Terraform计划JSON输出,智能区分假阳性差异。确保准确识别AzureRM配置变更,简化审查流程,提高部署安全性。

SKILL.md

Terraform AzureRM Set Diff Analyzer

A skill to identify "false-positive diffs" in Terraform plans caused by AzureRM Provider's Set-type attributes and distinguish them from actual changes.

When to Use

  • terraform plan shows many changes, but you only added/removed a single element
  • Application Gateway, Load Balancer, NSG, etc. show "all elements changed"
  • You want to automatically filter false-positive diffs in CI/CD

Background

Terraform's Set type compares by position rather than by key, so when adding or removing elements, all elements appear as "changed". This is a general Terraform issue, but it's particularly noticeable with AzureRM resources that heavily use Set-type attributes like Application Gateway, Load Balancer, and NSG.

These "false-positive diffs" don't actually affect the resources, but they make reviewing terraform plan output difficult.

Prerequisites

  • Python 3.8+

If Python is unavailable, install via your package manager (e.g., apt install python3, brew install python3) or from python.org.

Basic Usage

# 1. Generate plan JSON output
terraform plan -out=plan.tfplan
terraform show -json plan.tfplan > plan.json

# 2. Analyze
python scripts/analyze_plan.py plan.json

Troubleshooting

  • python: command not found: Use python3 instead, or install Python
  • ModuleNotFoundError: Script uses only standard library; ensure Python 3.8+

Detailed Documentation

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量8.6K
评分4.5 / 5.0
版本
更新日期2026年5月22日
对比案例1 组

用户评分

4.5(295)
5
23%
4
51%
3
23%
2
2%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月16日
最后更新2026年5月22日