Last active
June 29, 2018 20:26
-
-
Save stephenweinrich/32d380e0b8dcab58b5b48e215d374d29 to your computer and use it in GitHub Desktop.
terraform asp and as
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create App Service Plans | |
resource "azurerm_app_service_plan" "app-service-plan-westus" { | |
name = "asp-westus-contoso-${var.environment}" | |
location = "${azurerm_resource_group.resource-group-westus.location}" | |
resource_group_name = "${azurerm_resource_group.resource-group-westus.name}" | |
sku { | |
tier = "Free" | |
size = "F1" | |
} | |
} | |
resource "azurerm_app_service_plan" "app-service-plan-eastus" { | |
name = "asp-eastus-contoso-${var.environment}" | |
location = "${azurerm_resource_group.resource-group-eastus.location}" | |
resource_group_name = "${azurerm_resource_group.resource-group-eastus.name}" | |
sku { | |
tier = "Free" | |
size = "F1" | |
} | |
} | |
# Create App Services | |
resource "azurerm_app_service" "app-service-westus" { | |
name = "as-westus-contoso-${var.environment}" | |
location = "${azurerm_resource_group.resource-group-westus.location}" | |
resource_group_name = "${azurerm_resource_group.resource-group-westus.name}" | |
app_service_plan_id = "${azurerm_app_service_plan.app-service-plan-westus.id}" | |
} | |
resource "azurerm_app_service" "app-service-eastus" { | |
name = "as-eastus-contoso-${var.environment}" | |
location = "${azurerm_resource_group.resource-group-eastus.location}" | |
resource_group_name = "${azurerm_resource_group.resource-group-eastus.name}" | |
app_service_plan_id = "${azurerm_app_service_plan.app-service-plan-eastus.id}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment