Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

apim-terraform

Skill by Azure-Samples

Guides users in writing Terraform files for Azure API Management and related Azure services. It covers resource definitions, HCL syntax and common APIM patterns using the azurerm provider.

  • Score 86
  • 1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install apim-terraform

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Azure-Samples/AI-Gateway /tmp/AI-Gateway && mkdir -p ~/.claude/skills && cp -r /tmp/AI-Gateway/.github/skills/apim-terraform ~/.claude/skills/apim-terraform

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install apim-terraform in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a guide for writing Terraform files for Azure API Management and related Azure services. It covers resources such as APIM instances, APIs, backends, subscriptions, policies, products, loggers and diagnostics, using the azurerm provider. It provides HCL syntax, resource definitions and patterns drawn from the Terraform Registry and the repository.

The skill includes a minimum deployment example, tables of core, policy, monitoring and configuration resources, and a SKU reference. It shows patterns for managed identity, OpenAPI import, XML policies loaded from files, and Application Insights logging. For circuit breakers and backend pools it uses the azapi provider. It is aimed at users who want to create, modify or understand APIM Terraform configurations.

Written from the project's SKILL.md and checked against it.

What it can do

  • APIM instance setupWrites a basic azurerm_api_management resource with publisher details and a SKU.
  • API and operation resourcesDefines APIs, including OpenAPI import, and their operations.
  • Backends and poolsShows backend and load-balancing pool definitions, using azapi for pools and circuit breakers.
  • PoliciesSets up global, API, operation and product policies, including XML from files.
  • Products and subscriptionsCreates products, links APIs to products, and sets up subscriptions.
  • Logging and diagnosticsConfigures loggers, Application Insights and diagnostic settings for APIM.

What you need

  • Terraform (required_version >=1.0)
  • azurerm provider (~>4.0)
  • azapi provider (~>2.0) for backend circuit breakers and pools
  • random provider (~>3.0) for globally unique names

Try asking

  • Write Terraform for an APIM Developer instance in westeurope.
  • Add an APIM API from an OpenAPI URL with an api-key header.
  • Create an APIM backend pool with priorities and weights using azapi.

Good to know

  • Circuit breaker and backend pool examples use azapi with the 2024-06-01-preview API version.
  • Some advanced backend features are handled with azapi because they are not yet in azurerm.
  • Resource details beyond the examples are in a separate reference file.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .github/skills/apim-terraform/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB
  • references/ai-gateway-patterns.md14 KB
  • references/apim-resources.md18 KB

Alternatives to apim-terraform

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

apim-terraform: common questions

What does the apim-terraform skill do?

It gives guidance, HCL syntax and resource patterns for creating Terraform configurations for Azure API Management and related services. It uses the azurerm provider.

When should azapi be used instead of azurerm?

The source says azapi is used for features not yet in azurerm, such as circuit breakers and backend pools. Examples use the azapi_resource type.

Who is this skill for?

It is for users who want to create, modify or understand Terraform configurations for APIM instances, APIs, policies and supporting infrastructure.

How do I install apim-terraform?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is apim-terraform free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is apim-terraform safe to use?

It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to apim-terraform?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

apim-terraform Install

Add to stack

Loading.