Skip to content

Commit

Permalink
Merge pull request #693 from cal-itp/chore/sticky-settings
Browse files Browse the repository at this point in the history
chore: reflect the sticky settings in Terraform
  • Loading branch information
afeld authored Jun 16, 2022
2 parents f1730fe + c639af9 commit 4586c12
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions terraform/app_service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "azurerm_service_plan" "main" {
}
}

# app_settings, sticky_settings, and storage_account are managed manually through the portal since they contain secrets
# app_settings and storage_account are managed manually through the portal since they contain secrets

resource "azurerm_linux_web_app" "main" {
name = "AS-CDT-PUB-VIP-CALITP-P-001"
Expand Down Expand Up @@ -40,8 +40,30 @@ resource "azurerm_linux_web_app" "main" {
}
}

sticky_settings {
app_setting_names = [
"APPINSIGHTS_INSTRUMENTATIONKEY",
"APPINSIGHTS_PROFILERFEATURE_VERSION",
"APPINSIGHTS_SNAPSHOTFEATURE_VERSION",
"APPLICATIONINSIGHTS_CONFIGURATION_CONTENT",
"APPLICATIONINSIGHTS_CONNECTION_STRING",
"ApplicationInsightsAgent_EXTENSION_VERSION",
"DJANGO_INIT_PATH",
"DJANGO_OAUTH_CLIENT_ID",
"DJANGO_OAUTH_CLIENT_NAME",
"DiagnosticServices_EXTENSION_VERSION",
"InstrumentationEngine_EXTENSION_VERSION",
"SnapshotDebugger_EXTENSION_VERSION",
"XDT_MicrosoftApplicationInsightsJava",
"XDT_MicrosoftApplicationInsights_BaseExtensions",
"XDT_MicrosoftApplicationInsights_Mode",
"XDT_MicrosoftApplicationInsights_NodeJS",
"XDT_MicrosoftApplicationInsights_PreemptSdk",
]
}

lifecycle {
ignore_changes = [app_settings, sticky_settings, tags]
ignore_changes = [app_settings, tags]
}
}

Expand Down

0 comments on commit 4586c12

Please sign in to comment.