Skip to content

A module used to deploy an App service plan 🔥 - Please note, this module will cease to work in the 4.0 provider due to changes by Microsoft.

License

Notifications You must be signed in to change notification settings

libre-devops/terraform-azurerm-app-service-plan

Repository files navigation

Info

This module is feature frozen as it uses app_service_plan, please use Service Plan

module "rg" {
  source = "registry.terraform.io/libre-devops/rg/azurerm"

  rg_name  = "rg-${var.short}-${var.loc}-${terraform.workspace}-build" // rg-ldo-euw-dev-build
  location = local.location                                            // compares var.loc with the var.regions var to match a long-hand name, in this case, "euw", so "westeurope"
  tags     = local.tags

  #  lock_level = "CanNotDelete" // Do not set this value to skip lock
}

module "asp_old" {
  source = "registry.terraform.io/libre-devops/app-service-plan/azurerm"

  rg_name  = module.rg.rg_name
  location = module.rg.rg_location
  tags     = module.rg.rg_tags

  app_service_plan_name          = "plan-${var.short}-${var.loc}-${terraform.workspace}-01"
  add_to_app_service_environment = false

  kind = "Linux"
  sku  = {
    tier = "Dynamic"
    size = "Y1"
  }
}

Requirements

No requirements.

Providers

Name Version
azurerm n/a

Modules

No modules.

Resources

Name Type
azurerm_app_service_plan.plan resource

Inputs

Name Description Type Default Required
add_to_app_service_environment Whether or not this app service plan should be added to an app service environment bool false no
app_service_environment_id If an ASE is used, supply the ID to it here string "" no
app_service_plan_name The name for the App service plan string n/a yes
kind The kind of the App Service Plan to create. See documentation https://www.terraform.io/docs/providers/azurerm/r/app_service_plan.html#kind string n/a yes
location Azure location. string n/a yes
maximum_elastic_worker_count If ElasticScaleEnabled app service plan is used, the max number of nodes string "" no
per_site_scaling Should per site scaling be used? bool false no
reserved Flag indicating if App Service Plan should be reserved. Forced to true if "kind" is "Linux". string "false" no
rg_name Resource group name string n/a yes
sku A sku block. See documentation https://www.terraform.io/docs/providers/azurerm/r/app_service_plan.html#sku map(string) n/a yes
tags A map of the tags to use on the resources that are deployed with this module. map(string)
{
"source": "terraform"
}
no
zone_redundant Should the ASP be zone redundant? bool false no

Outputs

Name Description
app_service_plan_id Id of the created App Service Plan
app_service_plan_location Azure location of the created App Service Plan
app_service_plan_max_workers Maximum number of workers for the created App Service Plan
app_service_plan_name Name of the created App Service Plan

About

A module used to deploy an App service plan 🔥 - Please note, this module will cease to work in the 4.0 provider due to changes by Microsoft.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published