https://github.com/libre-devops/terraform-azurerm-app-service-plan
A module used to deploy an App service plan :fire: - Please note, this module will cease to work in the 4.0 provider due to changes by Microsoft.
https://github.com/libre-devops/terraform-azurerm-app-service-plan
azure azurerm azurerm-terraform-provider module terraform terraform-module
Last synced: 2 months ago
JSON representation
A module used to deploy an App service plan :fire: - Please note, this module will cease to work in the 4.0 provider due to changes by Microsoft.
- Host: GitHub
- URL: https://github.com/libre-devops/terraform-azurerm-app-service-plan
- Owner: libre-devops
- License: mit
- Created: 2022-04-30T16:05:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-17T21:43:33.000Z (almost 3 years ago)
- Last Synced: 2024-12-26T16:12:14.882Z (4 months ago)
- Topics: azure, azurerm, azurerm-terraform-provider, module, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Info
This module is feature frozen as it uses app_service_plan, please use [Service Plan](https://registry.terraform.io/modules/libre-devops/service-plan/azurerm/latest)
```hcl
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_tagsapp_service_plan_name = "plan-${var.short}-${var.loc}-${terraform.workspace}-01"
add_to_app_service_environment = falsekind = "Linux"
sku = {
tier = "Dynamic"
size = "Y1"
}
}
```## Requirements
No requirements.
## Providers
| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | n/a |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [azurerm_app_service_plan.plan](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service_plan) | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [add\_to\_app\_service\_environment](#input\_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](#input\_app\_service\_environment\_id) | If an ASE is used, supply the ID to it here | `string` | `""` | no |
| [app\_service\_plan\_name](#input\_app\_service\_plan\_name) | The name for the App service plan | `string` | n/a | yes |
| [kind](#input\_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](#input\_location) | Azure location. | `string` | n/a | yes |
| [maximum\_elastic\_worker\_count](#input\_maximum\_elastic\_worker\_count) | If ElasticScaleEnabled app service plan is used, the max number of nodes | `string` | `""` | no |
| [per\_site\_scaling](#input\_per\_site\_scaling) | Should per site scaling be used? | `bool` | `false` | no |
| [reserved](#input\_reserved) | Flag indicating if App Service Plan should be reserved. Forced to true if "kind" is "Linux". | `string` | `"false"` | no |
| [rg\_name](#input\_rg\_name) | Resource group name | `string` | n/a | yes |
| [sku](#input\_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](#input\_tags) | A map of the tags to use on the resources that are deployed with this module. | `map(string)` |{| no |
"source": "terraform"
}
| [zone\_redundant](#input\_zone\_redundant) | Should the ASP be zone redundant? | `bool` | `false` | no |## Outputs
| Name | Description |
|------|-------------|
| [app\_service\_plan\_id](#output\_app\_service\_plan\_id) | Id of the created App Service Plan |
| [app\_service\_plan\_location](#output\_app\_service\_plan\_location) | Azure location of the created App Service Plan |
| [app\_service\_plan\_max\_workers](#output\_app\_service\_plan\_max\_workers) | Maximum number of workers for the created App Service Plan |
| [app\_service\_plan\_name](#output\_app\_service\_plan\_name) | Name of the created App Service Plan |