Skip to content

Commit

Permalink
Updated TF multitenant scenario templates to compatible spoke area (f… (
Browse files Browse the repository at this point in the history
  • Loading branch information
JinLee794 authored Aug 28, 2023
1 parent bea777c commit 307ad7f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
Binary file removed kubectl
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
application_name = "eslz2"
environment = "prod"
location = "westus2"
location = "westus3"
owner = "[email protected]"

# For the hub state, use the same settings as the remote state config on the hub deployment from /hub/main.tf
Expand All @@ -18,11 +18,11 @@ aad_admin_group_name = "AppSvcLZA Azure AD SQL Admins"
vm_aad_admin_object_id = "bda41c64-1493-4d8d-b4b5-7135159d4884" # "AppSvcLZA Azure AD SQL Admins"


# Optionally provide non-AAD admin credentials for the VM
## Optionally provide non-AAD admin credentials for the VM
# vm_admin_username = "daniem"
# vm_admin_password = "**************"

# These settings are used for peering the spoke to the hub. Fill in the appropriate settings for your environment
## These settings are used for peering the spoke to the hub. Fill in the appropriate settings for your environment
# hub_settings = {
# rg_name = "rg-hub-scenario1-wus3"
# vnet_name = "vnet-hub-scenario1-wus3"
Expand All @@ -32,7 +32,7 @@ vm_aad_admin_object_id = "bda41c64-1493-4d8d-b4b5-7135159d4884" # "AppSvcLZA Azu
# }
# }

# Toggle deployment of optional features and services for the Landing Zone
## Toggle deployment of optional features and services for the Landing Zone
deployment_options = {
enable_waf = true
enable_egress_lockdown = true
Expand All @@ -44,7 +44,7 @@ deployment_options = {
deploy_vm = false
}

# Optionally deploy a Github runner, DevOps agent, or both to the VM.
## Optionally deploy a Github runner, DevOps agent, or both to the VM.
# devops_settings = {
# github_runner = {
# repository_url = "https://github.com/{organization}/{repository}"
Expand Down
10 changes: 4 additions & 6 deletions scenarios/secure-baseline-multitenant/terraform/spoke/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ locals {
module "app_service" {
source = "../../../shared/terraform-modules/app-service"

global_settings = local.global_settings
resource_group = azurerm_resource_group.spoke.name
application_name = var.application_name
# environment = var.environment
location = var.location
# unique_id = random_integer.unique_id.result
global_settings = local.global_settings
resource_group = azurerm_resource_group.spoke.name
application_name = var.application_name
location = var.location
log_analytics_workspace_id = azurerm_log_analytics_workspace.law.id
enable_diagnostic_settings = var.deployment_options.enable_diagnostic_settings

Expand Down

0 comments on commit 307ad7f

Please sign in to comment.