terraform-azurerm-set-diff-analyzer by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill terraform-azurerm-set-diff-analyzer一个用于识别由 AzureRM Provider 的 Set 类型属性导致的 Terraform 计划中的“误报差异”,并将其与实际变更区分开来的技能。
terraform plan 显示大量变更,但你只添加/删除了单个元素Terraform 的 Set 类型通过位置而非键值进行比较,因此在添加或删除元素时,所有元素都会显示为“已变更”。这是一个普遍的 Terraform 问题,但在 AzureRM 资源上尤为明显,因为这些资源(如 Application Gateway、Load Balancer 和 NSG)大量使用了 Set 类型属性。
这些“误报差异”实际上并不影响资源,但它们使得审查 terraform plan 输出变得困难。
如果未安装 Python,请通过你的包管理器(例如 apt install python3、brew install python3)或从 python.org 安装。
# 1. 生成计划 JSON 输出
terraform plan -out=plan.tfplan
terraform show -json plan.tfplan > plan.json
# 2. 分析
python scripts/analyze_plan.py plan.json
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
python: command not found : 改用 python3,或安装 PythonModuleNotFoundError : 脚本仅使用标准库;请确保使用 Python 3.8+每周安装量
7.5K
代码仓库
GitHub 星标数
27.0K
首次出现
2026年2月2日
安全审计
安装于
codex7.4K
gemini-cli7.3K
opencode7.3K
github-copilot7.3K
cursor7.3K
kimi-cli7.3K
A skill to identify "false-positive diffs" in Terraform plans caused by AzureRM Provider's Set-type attributes and distinguish them from actual changes.
terraform plan shows many changes, but you only added/removed a single elementTerraform'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.
If Python is unavailable, install via your package manager (e.g., apt install python3, brew install python3) or from python.org.
# 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
python: command not found : Use python3 instead, or install PythonModuleNotFoundError : Script uses only standard library; ensure Python 3.8+Weekly Installs
7.5K
Repository
GitHub Stars
27.0K
First Seen
Feb 2, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex7.4K
gemini-cli7.3K
opencode7.3K
github-copilot7.3K
cursor7.3K
kimi-cli7.3K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装