apim-terraform

Provision Azure API Management resources with Terraform using azurerm and azapi providers.

970|497|Updated Apr 3, 2024
One-click install
npx skills add https://github.com/Azure-Samples/AI-Gateway --skill apim-terraform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apim-terraform
Source: https://github.com/Azure-Samples/AI-Gateway/tree/main/.github/skills/apim-terraform
Command: npx skills add https://github.com/Azure-Samples/AI-Gateway --skill apim-terraform

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides infrastructure engineers through describing and provisioning Azure API Management resources with Terraform, reducing manual setup time and ensuring consistent, reproducible deployments.

Core Features & Use Cases

  • Terraform-driven APIM provisioning: Create APIM services, APIs, backends, policies, products, and subscriptions using the azurerm and azapi providers.
  • Pattern-driven guidance: Includes common patterns for backend pools, API policies, and diagnostics to speed up production deployments.
  • Use Case: You need to stand up a new APIM environment with standardized configuration for multiple environments using a single Terraform configuration.

Quick Start

Begin with a basic APIM Terraform setup shown in this Skill to bootstrap an APIM deployment.

Frequently Asked Questions about apim-terraform

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Azure API Management deployment with Terraform?

Terraform automates Azure API Management deployment by using the azurerm and azapi providers to provision services, APIs, backends, policies, products, and subscriptions. This ensures repeatable deployments across multiple environments.

What is the best way to configure APIM backend pools and policies using infrastructure as code?

Configuring APIM backend pools and policies using infrastructure as code is best handled through Terraform. It provides pattern-driven HCL configurations to standardize setup and speed up production deployments.

Can I use the azapi provider with azurerm to provision Azure API Management resources?

Yes, you can use the azapi provider alongside azurerm to provision Azure API Management resources. This combination manages services and APIs while applying common patterns for backend pools and diagnostics.

How do I stand up a new APIM environment with standardized configuration for multiple environments?

To stand up a new APIM environment with standardized configuration for multiple environments, use a single Terraform configuration. This defines services, APIs, and subscriptions as code to ensure consistency across deployments.

Does Terraform support managing APIM subscriptions and products?

Terraform supports managing APIM subscriptions and products. Using the azurerm and azapi providers, you include these resources in your HCL configuration to fully automate your API Management provisioning.