Skip to content

Commit

Permalink
Merge pull request #378 from Azure/AK-asev3
Browse files Browse the repository at this point in the history
add Asev3 support and fix backwards comp issue in remote tfstate with try()
  • Loading branch information
LaurentLesle committed Jun 2, 2022
2 parents 2126c57 + 044aac5 commit 29ed19d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aztfmod
3 changes: 3 additions & 0 deletions caf_solution/local.remote.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ locals {
app_service_environments = {
for key, value in try(var.landingzone.tfstates, {}) : key => merge(try(data.terraform_remote_state.remote[key].outputs.objects[key].app_service_environments, {}))
}
app_service_environments_v3 = {
for key, value in try(var.landingzone.tfstates, {}) : key => merge(try(data.terraform_remote_state.remote[key].outputs.objects[key].app_service_environments_v3, {}))
}
app_service_plans = {
for key, value in try(var.landingzone.tfstates, {}) : key => merge(try(data.terraform_remote_state.remote[key].outputs.objects[key].app_service_plans, {}))
}
Expand Down
1 change: 1 addition & 0 deletions caf_solution/local.webapp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ locals {
var.webapp,
{
app_service_environments = var.app_service_environments
app_service_environments_v3 = var.app_service_environments_v3
app_service_plans = var.app_service_plans
app_services = var.app_services
azurerm_application_insights = var.azurerm_application_insights
Expand Down
2 changes: 1 addition & 1 deletion caf_solution/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ locals {
}
)
,
data.terraform_remote_state.remote[var.landingzone.global_settings_key].outputs.tfstates
try(data.terraform_remote_state.remote[var.landingzone.global_settings_key].outputs.tfstates, {})
)


Expand Down
3 changes: 3 additions & 0 deletions caf_solution/variables.webapp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ variable "webapp" {
variable "app_service_environments" {
default = {}
}
variable "app_service_environments_v3" {
default = {}
}
variable "app_service_plans" {
default = {}
}
Expand Down
Empty file modified templates/asvm/orion/deploy_template.sh
100755 → 100644
Empty file.
Empty file modified templates/platform/deploy_platform.sh
100755 → 100644
Empty file.

0 comments on commit 29ed19d

Please sign in to comment.