2023-09-01 23:27:50 +01:00
|
|
|
terraform {
|
|
|
|
backend "local" {}
|
|
|
|
|
|
|
|
required_providers {
|
|
|
|
azurerm = {
|
|
|
|
source = "hashicorp/azurerm"
|
|
|
|
version = "3.71.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "azurerm" {
|
|
|
|
features {}
|
|
|
|
|
|
|
|
subscription_id = var.azure_subscription_id
|
|
|
|
client_id = var.azure_client_id
|
|
|
|
client_secret = var.azure_client_secret
|
|
|
|
tenant_id = var.azure_tenant_id
|
|
|
|
}
|
|
|
|
|
|
|
|
locals {
|
|
|
|
env_name = "selector-prod"
|
|
|
|
}
|
|
|
|
|
2023-09-04 23:23:25 +01:00
|
|
|
# resource "azurerm_resource_group" "selector" {
|
|
|
|
# name = local.env_name
|
|
|
|
# location = "UK South"
|
|
|
|
# }
|
2023-09-01 23:27:50 +01:00
|
|
|
|
|
|
|
# module "web_service" {
|
|
|
|
# source = "../modules/web_service"
|
|
|
|
|
|
|
|
# resource_group_name = azurerm_resource_group.selector.name
|
|
|
|
# resource_group_location = azurerm_resource_group.selector.location
|
|
|
|
# site_name = "${local.env_name}-web"
|
2023-09-04 23:23:25 +01:00
|
|
|
# service_plan_sku = "F1"
|
2023-09-01 23:27:50 +01:00
|
|
|
# }
|
|
|
|
|
|
|
|
# module "data" {
|
|
|
|
# source = "../modules/data"
|
|
|
|
|
|
|
|
# resource_group_name = azurerm_resource_group.selector.name
|
|
|
|
# resource_group_location = azurerm_resource_group.selector.location
|
|
|
|
# data_name = "${local.env_name}-data"
|
|
|
|
# }
|
2023-09-04 23:23:25 +01:00
|
|
|
|
|
|
|
# module "listener_service" {
|
|
|
|
# source = "../modules/listener_service"
|
|
|
|
|
|
|
|
# resource_group_name = azurerm_resource_group.selector.name
|
|
|
|
# resource_group_location = azurerm_resource_group.selector.location
|
|
|
|
# service_name = "${local.env_name}-listener"
|
|
|
|
# service_plan_sku = "B1"
|
|
|
|
# }
|