Skip to content

Commit

Permalink
Added App Service Environment (Azure#85)
Browse files Browse the repository at this point in the history
* Update resourceDefinition.json

Added App Service Environment entry

* Added ASE to main.tf

* Added ASE ones to output.tf

* Updated README.md as well

* removed the customization
  • Loading branch information
nithinmohantk authored May 27, 2023
1 parent c06baf3 commit 528b026
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ No modules.
| <a name="output_api_management"></a> [api\_management](#output\_api\_management) | Api Management |
| <a name="output_app_configuration"></a> [app\_configuration](#output\_app\_configuration) | App Configuration |
| <a name="output_app_service"></a> [app\_service](#output\_app\_service) | App Service |
| <a name="output_app_service_environment"></a> [app\_service\_environment](#output\_app\_service\_environment) | App Service Environment |
| <a name="output_app_service_plan"></a> [app\_service\_plan](#output\_app\_service\_plan) | App Service Plan |
| <a name="output_application_gateway"></a> [application\_gateway](#output\_application\_gateway) | Application Gateway |
| <a name="output_application_insights"></a> [application\_insights](#output\_application\_insights) | Application Insights |
Expand Down
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ locals {
scope = "global"
regex = "^[a-z0-9][a-zA-Z0-9-]+[a-z0-9]"
}
app_service_environment = {
name = substr(join("-", compact([local.prefix, "ase", local.suffix])), 0, 60)
name_unique = substr(join("-", compact([local.prefix, "ase", local.suffix_unique])), 0, 60)
dashes = true
slug = "ase"
min_length = 2
max_length = 60
scope = "resouceGroup"
regex = "^[a-z0-9][a-zA-Z0-9-]+[a-z0-9]"
}
app_service_plan = {
name = substr(join("-", compact([local.prefix, "plan", local.suffix])), 0, 40)
name_unique = substr(join("-", compact([local.prefix, "plan", local.suffix_unique])), 0, 40)
Expand Down
4 changes: 4 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ output "app_service" {
description = "App Service"
}

output "app_service_environment" {
value = local.az.app_service_environment
}

output "app_service_plan" {
value = local.az.app_service_plan
description = "App Service Plan"
Expand Down
11 changes: 11 additions & 0 deletions resourceDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@
"slug": "plan",
"dashes": true
},
{
"name": "app_service_environment",
"length": {
"min": 1,
"max": 40
},
"regex": "^(?=.{1,40}$)[a-zA-Z0-9-]+$",
"scope": "resourceGroup",
"slug": "ase",
"dashes": true
},
{
"name": "app_service",
"length": {
Expand Down

0 comments on commit 528b026

Please sign in to comment.