Skip to content

webapps/service_plan

Overview

This page documents the Terraform module implementation, key configuration surfaces, and how it integrates with CAF.

Dependency diagram (Mermaid)

graph TD azurecaf_name.plan["azurecaf_name.plan"] azurerm_service_plan.sp["azurerm_service_plan.sp"] remote:app_service_environments["remote:app_service_environments"] remote:app_service_environments_v3["remote:app_service_environments_v3"] azurerm_service_plan.sp --> azurecaf_name.plan azurerm_service_plan.sp --> remote:app_service_environments azurerm_service_plan.sp --> remote:app_service_environments_v3

Module Reference

Category: webapps
Path: modules/webapps/service_plan
Azure Resources: azurecaf_name, azurerm_service_plan

Inputs

Name Description Type Required Default Validation
"location" "Optional override for the Azure region. If null, the module uses resource_group.location." string no - -
"resource_group" "Resource group object used by the module to resolve resource_group_name and default location." any yes - -
"settings" "<<DESCRIPTION Settings object for the Service Plan module. Supported attributes: - name - (Required) Base name used ... any yes - -
"global_settings" "Global settings used by CAF naming and tag composition (see module README.md)." any yes - -
"base_tags" "When true, merge global/resource group tags with module tags." bool yes - -
"remote_objects" "Remote objects used for dependency resolution (for example App Service Environment lookups by key/lz_key)." any yes - -
"client_config" "Client configuration object used for landing zone context during dependency lookups." any yes - -

Outputs

Name Description Sensitive Value
"id" - azurerm_service_plan.sp.id
"kind" - azurerm_service_plan.sp.kind
"reserved" - azurerm_service_plan.sp.reserved

Sources

  • modules/webapps/service_plan/azure_caf_name.tf
  • modules/webapps/service_plan/azurerm_service_plan.tf
  • modules/webapps/service_plan/locals.tf
  • modules/webapps/service_plan/main.tf
  • modules/webapps/service_plan/outputs.tf
  • modules/webapps/service_plan/variables.tf