Community코딩 & 개발github.com

github/import-infrastructure-as-code

Azure CLI 탐색과 Azure Verified Modules(AVM)을 사용하여 기존 Azure 리소스를 Terraform으로 가져옵니다. 라이브 Azure 인프라를 역공학하고, 기존 구독/리소스 그룹/리소스 ID로부터 Infrastructure as Code를 생성하고, 종속성을 매핑하며, 다운로드된 모듈 소스에서 정확한 가져오기 주소를 도출하고, 구성 드리프트를 방지하며, 모든 Azure 리소스 유형에서 검증 및 계획이 가능한 AVM 기반 Terraform 파일을 생성해야 할 때 사용됩니다.

import-infrastructure-as-code란 무엇인가요?

이 스킬은 Azure CLI 명령어로 라이브 Azure 인프라를 탐색하고, Azure Verified Modules(AVM)을 기반으로 Terraform 구성을 생성하여 기존 리소스를 Terraform 상태로 가져오는 과정을 자동화합니다. 사용자가 구독 ID, 리소스 그룹 이름, 또는 개별 리소스 ID를 입력하면, 해당 리소스를 조회하고 종속성을 분석하여 적절한 AVM 모듈 소스를 다운로드한 후 정확한 Terraform 가져오기 주소를 도출합니다. 생성된 Terraform 파일은 `terraform init`, `terraform plan`, `terraform import` 명령을 실행할 수 있는 완전한 형태로 제공되며, 구성 드리프트를 방지하기 위해 기존 리소스의 현재 상태를 정확히 반영합니다. 이 스킬은 Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있으며, Azure 인프라를 코드로 관리하려는 DevOps 엔지니어에게 유용합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/github/awesome-copilot/tree/main/skills/import-infrastructure-as-code

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

import-infrastructure-as-code은(는) 무엇을 하나요?

Azure CLI 탐색과 Azure Verified Modules(AVM)을 사용하여 기존 Azure 리소스를 Terraform으로 가져옵니다. 라이브 Azure 인프라를 역공학하고, 기존 구독/리소스 그룹/리소스 ID로부터 Infrastructure as Code를 생성하고, 종속성을 매핑하며, 다운로드된 모듈 소스에서 정확한 가져오기 주소를 도출하고, 구성 드리프트를 방지하며, 모든 Azure 리소스 유형에서 검증 및 계획이 가능한 AVM 기반 Terraform 파일을 생성해야 할 때 사용됩니다.

작동 방식

이 스킬은 다음 단계로 작동합니다:

  1. Azure CLI를 통한 리소스 발견 - 제공된 구독 ID, 리소스 그룹 이름, 또는 리소스 ID를 사용하여 라이브 Azure 리소스를 쿼리합니다.
  2. 종속성 매핑 - 발견된 리소스 간의 종속성을 분석하고 매핑합니다.
  3. AVM 모듈 소스 다운로드 - 각 리소스 유형에 적합한 Azure Verified Modules 소스를 식별하고 다운로드합니다.
  4. 가져오기 주소 도출 - 다운로드된 모듈 소스에서 정확한 Terraform 가져오기 주소를 추출합니다.
  5. Terraform 구성 생성 - terraform init, terraform plan, terraform import 명령을 실행 가능한 AVM 기반 Terraform 파일을 생성합니다.

필수 사전 조건

  • Azure CLI (az)가 설치되어 있고 로그인되어 있어야 합니다.
  • Terraform (terraform)이 설치되어 있어야 합니다.
  • 대상 Azure 구독에 대한 읽기 권한이 필요합니다.

사용 예시

# 구독의 모든 리소스 가져오기
/import-infrastructure-as-code --subscription-id "00000000-0000-0000-0000-000000000000"

# 특정 리소스 그룹 가져오기
/import-infrastructure-as-code --resource-group "my-rg"

# 특정 리소스 ID 가져오기
/import-infrastructure-as-code --resource-id "/subscriptions/.../resourceGroups/.../providers/Microsoft.Compute/virtualMachines/my-vm"

지원되는 Azure 리소스 유형

리소스 유형AVM 모듈 소스
Virtual MachinesAzure/avm-res-compute-virtualmachine/azurerm
Virtual NetworksAzure/avm-res-network-virtualnetwork/azurerm
Storage AccountsAzure/avm-res-storage-storageaccount/azurerm
SQL DatabasesAzure/avm-res-sql-server/azurerm
App ServicesAzure/avm-res-web-site/azurerm

출력 구조

생성된 출력은 다음 파일을 포함합니다:

  • main.tf - AVM 모듈을 사용한 Terraform 구성
  • terraform.tfvars - 변수 값 정의
  • outputs.tf - 출력 정의
  • providers.tf - AzureRM 공급자 구성
  • import.sh - Terraform 가져오기 명령어를 포함한 셸 스크립트

구성 드리프트 방지

이 스킬은 다음을 통해 구성 드리프트를 방지합니다:

  • 라이브 Azure 리소스의 현재 상태를 정확히 반영
  • 모든 리소스 속성을 Terraform 구성에 포함
  • AVM 모듈의 최신 버전 사용
  • 적절한 종속성 순서 보장

문제 해결

일반적인 문제

  1. Azure CLI 인증 오류 - az login으로 로그인되어 있는지 확인하세요.
  2. 리소스를 찾을 수 없음 - 제공된 구독 ID, 리소스 그룹 이름, 또는 리소스 ID가 올바른지 확인하세요.
  3. AVM 모듈을 찾을 수 없음 - 리소스 유형에 대한 AVM 모듈이 존재하는지 확인하세요.

관련 리소스

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

github/acquire-codebase-knowledge

Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document this architecture", "onboard me to this repo", or "create codebase docs". Do not trigger for routine feature implementation, bug fixes, or narrow code edits unless the user asks for repository-level discovery.

github/add-educational-comments

Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.

github/agent-governance

Patterns and techniques for adding governance, safety, and trust controls to AI agent systems. Use this skill when: - Building AI agents that call external tools (APIs, databases, file systems) - Implementing policy-based access controls for agent tool usage - Adding semantic intent classification to detect dangerous prompts - Creating trust scoring systems for multi-agent workflows - Building audit trails for agent actions and decisions - Enforcing rate limits, content filters, or tool restrictions on agents - Working with any agent framework (PydanticAI, CrewAI, OpenAI Agents, LangChain, AutoGen)

github/agentic-eval

Patterns and techniques for evaluating and improving AI agent outputs. Use this skill when: - Implementing self-critique and reflection loops - Building evaluator-optimizer pipelines for quality-critical generation - Creating test-driven code refinement workflows - Designing rubric-based or LLM-as-judge evaluation systems - Adding iterative improvement to agent outputs (code, reports, analysis) - Measuring and improving agent response quality

github/agent-owasp-compliance

Check any AI agent codebase against the OWASP Agentic Security Initiative (ASI) Top 10 risks. Use this skill when: - Evaluating an agent system's security posture before production deployment - Running a compliance check against OWASP ASI 2026 standards - Mapping existing security controls to the 10 agentic risks - Generating a compliance report for security review or audit - Comparing agent framework security features against the standard - Any request like "is my agent OWASP compliant?", "check ASI compliance", or "agentic security audit"

github/ai-prompt-engineering-safety-review

Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations with extensive frameworks, testing methodologies, and educational content.

github/appinsights-instrumentation

Instrument a webapp to send useful telemetry data to Azure App Insights

github/apple-appstore-reviewer

Serves as a reviewer of the codebase with instructions on looking for Apple App Store optimizations or rejection reasons.

github/architecture-blueprint-generator

Comprehensive project architecture blueprint generator that analyzes codebases to create detailed architectural documentation. Automatically detects technology stacks and architectural patterns, generates visual diagrams, documents implementation patterns, and provides extensible blueprints for maintaining architectural consistency and guiding new development.

github/arch-linux-triage

Triage and resolve Arch Linux issues with pacman, systemd, and rolling-release best practices.

github/arize-ai-provider-integration

Creates, reads, updates, and deletes Arize AI integrations that store LLM provider credentials used by evaluators and other Arize features. Supports any LLM provider (e.g. OpenAI, Anthropic, Azure OpenAI, AWS Bedrock, Vertex AI, Gemini, NVIDIA NIM). Use when the user mentions AI integration, LLM provider credentials, create integration, list integrations, update credentials, delete integration, or connecting an LLM provider to Arize.

github/arize-annotation

Creates and manages annotation configs (categorical, continuous, freeform label schemas) and annotation queues (human review workflows) on Arize. Applies human annotations to project spans via the Python SDK. Use when the user mentions annotation config, annotation queue, label schema, human feedback, bulk annotate spans, update_annotations, labeling queue, annotate record, or human review.

github/arize-dataset

Creates, manages, and queries Arize datasets and examples. Covers dataset CRUD, appending examples, exporting data, and file-based dataset creation using the ax CLI. Use when the user needs test data, evaluation examples, or mentions create dataset, list datasets, export dataset, append examples, dataset version, golden dataset, or test set.

github/arize-evaluator

Handles LLM-as-judge evaluation workflows on Arize including creating/updating evaluators, running evaluations on spans or experiments, managing tasks, trigger-run operations, column mapping, and continuous monitoring. Use when the user mentions create evaluator, LLM judge, hallucination, faithfulness, correctness, relevance, run eval, score spans, score experiment, trigger-run, column mapping, continuous monitoring, or improve evaluator prompt.

github/arize-experiment

Creates, runs, and analyzes Arize experiments for evaluating and comparing model performance. Covers experiment CRUD, exporting runs, comparing results, and evaluation workflows using the ax CLI. Use when the user mentions create experiment, run experiment, compare models, model performance, evaluate AI, experiment results, benchmark, A/B test models, or measure accuracy.

github/arize-instrumentation

Adds Arize AX tracing to an LLM application for the first time. Follows a two-phase agent-assisted flow to analyze the codebase then implement instrumentation after user confirmation. Use when the user wants to instrument their app, add tracing from scratch, set up LLM observability, integrate OpenTelemetry or openinference, or get started with Arize tracing.

github/arize-link

Generates deep links to the Arize UI for traces, spans, sessions, datasets, labeling queues, evaluators, and annotation configs. Produces clickable URLs for sharing Arize resources with team members. Use when the user wants to link to or open a trace, span, session, dataset, evaluator, or annotation config in the Arize UI.

github/arize-prompt-optimization

Optimizes, improves, and debugs LLM prompts using production trace data, evaluations, and annotations. Extracts prompts from spans, gathers performance signal, and runs a data-driven optimization loop using the ax CLI. Use when the user mentions optimize prompt, improve prompt, make AI respond better, improve output quality, prompt engineering, prompt tuning, or system prompt improvement.

github/arize-trace

Downloads, exports, and inspects existing Arize traces and spans to understand what an LLM app is doing or debug runtime issues. Covers exporting traces by ID, spans by ID, sessions by ID, and root-cause investigation using the ax CLI. Use when the user wants to look at existing trace data, see what their LLM app is doing, export traces, download spans, investigate errors, or analyze behavior regressions.

github/aspire

Aspire skill covering the Aspire CLI, AppHost orchestration, service discovery, integrations, MCP server, VS Code extension, Dev Containers, GitHub Codespaces, templates, dashboard, and deployment. Use when the user asks to create, run, debug, configure, deploy, or troubleshoot an Aspire distributed application.

관련 스킬