You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following Terraform config files reference MST Courtesy Cards, but should use a variable instead, e.g. ${local.agency_card_name}
So we could have something like:
resource "azurerm_linux_web_app" "main" {
# name needs to be globally unique and is more specific because it's used in the app URL
- name = "mst-courtesy-cards-eligibility-server-${local.env_name}"+ name = "${local.agency_card_name}-eligibility-server-${local.env_name}"
# etc...
}
resource"azurerm_linux_web_app""main" {
# name needs to be globally unique and is more specific because it's used in the app URLname="mst-courtesy-cards-eligibility-server-${local.env_name}"# etc...
}
VELOCITY_ETL_APP_OBJECT_ID (need a more generic name for variable)
variable"VELOCITY_ETL_APP_OBJECT_ID" {
description="Object ID from the registered application for the Velocity server ETL uploading: https://cloudsight.zendesk.com/hc/en-us/articles/360016785598-Azure-finding-your-service-principal-object-ID"type=string
}
thekaveman
changed the title
Update terraform confirm with agency-specific variables
Update terraform config with agency-specific variables
Aug 15, 2023
Backend configuration in main.tf cannot use variables. Need to figure out how to specify a different backend config per agency (multiple main.tf files in subdirectories per-agency?)
Backend configuration in main.tf cannot use variables. Need to figure out how to specify a different backend config per agency (multiple main.tf files in subdirectories per-agency?)
We realized that the pipeline gets its backend resource group and storage account config through the TerraformTask configuration. For local development, we can get our backend config through command-line options.
Therefore, we were able to remove resource group and storage account from being specified in the backend block; see 3803ffa and 8af3d32
The following Terraform config files reference MST Courtesy Cards, but should use a variable instead, e.g.
${local.agency_card_name}
So we could have something like:
app_service.tf
azurerm_linux_web_app.main.name
environment.tf
azurerm_resource_group.main.name
front_door.tf
azurerm_cdn_frontdoor_endpoint.main.name
main.tf
terraform.azurerm.resource_group_name
terraform.azurerm.storage_account_name
roles.tf
azurerm_role_assignment.velocity_etl
(make this name more generic?agency_card_data_etl
?)azurerm_role_assignment.velocity_etl.principal_id
[Microsoft.Storage/storageAccounts/blobServices/containers/blobs:path] StringLike 'velocity.csv'
storage.tf
azurerm_storage_account.main.name
uptime.tf
healthcheck.name
variables.tf
VELOCITY_ETL_APP_OBJECT_ID
(need a more generic name for variable)init.sh
init
withThe text was updated successfully, but these errors were encountered: