GithubHelp home page GithubHelp logo

messeb / terraform-az-apim Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 51 KB

Terraform module to create Azure API Management with Subdomain

License: MIT License

HCL 100.00%
azure azure-api-management azure-cdn terraform

terraform-az-apim's Introduction

Azure API Management

Overview

This Terraform module provides the required infrastructure to create an API Management with a custom subdomain.

Details

  • Creates an Azure API Management instance in the specified resource group.
  • Adds a custom domain to the API Management instance.
  • Adds logging to the API Management instance.

Usage

module "apim" {
  source = "github.com/messeb/terraform-az-apim.git"

  resource_group_name = "az-apim"
  resources_base_name = "az-apim"
  location            = "westeurope"
  publisher_email     = "[email protected]"
  publisher_name      = "John Doe"
  sku_name            = "Consumption_0"

  api_keys = [
    {
      name = "ApiKey01"
      key  = "cologne-4711"
    }
  ]

  sub_domain_dns = {
    resource_group_name = "example"
    zone_name           = "example.com"
    root_domain         = "example.com"
    sub_domain_name     = "api"
  }
}

Example

Example Usage

Resources

Name Type
random_uuid.uuid resource
random_string.rnd resource
azurerm_resource_group.rg resource
azurerm_application_insights.api-insights resource
azurerm_api_management_logger.logger resource
azurerm_api_management_diagnostic.diag resource
azurerm_api_management.apim resource
azurerm_api_management_subscription.subscriptions resource
azurerm_cdn_profile.apim-cdnprofile resource
azurerm_cdn_endpoint.apim-endpoint resource
azurerm_dns_cname_record.cname_record resource
azurerm_cdn_endpoint_custom_domain.cdn_custom_domain resource
null_resource.destroy_cname_record resource

Inputs

Name Description Type Default Required
resource_group_name Resource group in which the resources will be created. string n/a yes
resources_base_name Basename for all of the resources. string n/a yes
location Azure cloud region string n/a yes
publisher_name Name of the publisher string n\a yes
publisher_email Email of the publisher string n\a yes
sku_name SKU of Application Management service string "Consumption_0" no
api_keys List of api keys list(object) [] no
sub_domain_dns.resource_group_name Resource group of the DNS zone of the root domain string n/a yes
sub_domain_dns.zone_name Zone name of the root domain string n/a yes
sub_domain_dns.root_domain Root domain of the website string n/a yes
sub_domain_dns.sub_domain_name Sub-domain of the website string n/a yes

Outputs

Name Description
api_management_url The HTTPS-URL of the CDN endpoint of the API Management.
api_management_name Name of the API Management.
api_management_resource_group_name Resource group name of the API Management.
api_management_location Location of the API Management.

terraform-az-apim's People

Contributors

messeb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.