Azure 资源反向生成 Terraform
原名:import-infrastructure-as-code
读取现有 Azure 资源并生成基于 AVM 的 Terraform 导入与配置草案。
中文 Skills 技能说明
适合把手工创建的 Azure 资源纳入基础设施代码治理。默认只读发现并生成本地文件,必须核对资源依赖、敏感属性与 plan;正式 import、state 修改和云资源变更需由平台负责人批准。
上游能力依据
上游原始适用说明:Import existing Azure resources into Terraform using Azure CLI discovery and Azure Verified Modules (AVM). Use when asked to reverse-engineer live Azure infrastructure, generate Infrastructure as Code from existing subscriptions/resource groups/resource IDs, map dependencies, derive exact import addresses from downloaded module source, prevent configuration drift, and produce AVM-based Terraform files ready for validation and planning across any Azure resource type.
上游 SKILL.md 主要章节(保留原文标题):
- When to Use This Skill
- Prerequisites
- Inputs
- Step-by-Step Workflows
- 1) Collect Required Scope (Mandatory)
- 2) Authenticate and Set Context
- 3) Run Discovery Commands
- 4) Resolve Dependencies Before Code Generation
- 5) Select Azure Verified Modules (Required)
- Terraform Registry
使用边界
先核对运行环境、账号、区域、依赖和最小权限。创建资源、改配置、发布服务或产生费用前必须让使用者确认。
作者、翻译与许可证
- 原作者
- GitHub, Inc. 与 awesome-copilot contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/github/awesome-copilot/tree/83561bd7d8a46fcda0581aedabdf8eac7cb196b6/skills/import-infrastructure-as-code
适用范围
平台:linux、macos、windows;标签:开发运维、Azure 资源反向生成 Terraform
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。