Skip to content

Commit

Permalink
Adding app service plan resource
Browse files Browse the repository at this point in the history
  • Loading branch information
frasermolyneux committed Dec 8, 2023
1 parent c61aec2 commit c0b1077
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions terraform/app_service_plan.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resource "azurerm_service_plan" "sp" {
name = local.app_service_plan_name
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name

os_type = "Linux"
sku_name = "P1v3"
}
5 changes: 3 additions & 2 deletions terraform/locals.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
locals {
resource_group_name = "rg-portal-core-${var.environment}-${var.location}-${var.instance}"
app_insights_name = "ai-portal-core-${var.environment}-${var.location}-${var.instance}"
resource_group_name = "rg-portal-core-${var.environment}-${var.location}-${var.instance}"
app_insights_name = "ai-portal-core-${var.environment}-${var.location}-${var.instance}"
app_service_plan_name = "asp-portal-core-${var.environment}-${var.location}-${var.instance}"
}

0 comments on commit c0b1077

Please sign in to comment.