Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sovereign cloud endpoints and suffix environment variables (part 2) #184

Merged
merged 3 commits into from
May 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions caf_solution/landingzone.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module "solution" {
azuread_groups = var.azuread_groups
azuread_roles = var.azuread_roles
azuread_users = var.azuread_users
cloud = local.cloud
compute = local.compute
current_landingzone_key = var.landingzone.key
custom_role_definitions = var.custom_role_definitions
Expand Down
40 changes: 40 additions & 0 deletions caf_solution/local.cloud.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
locals {
cloud = merge(
var.cloud,
{
acrLoginServerEndpoint = var.acrLoginServerEndpoint
attestationEndpoint = var.attestationEndpoint
azureDatalakeAnalyticsCatalogAndJobEndpoint = var.azureDatalakeAnalyticsCatalogAndJobEndpoint
azureDatalakeStoreFileSystemEndpoint = var.azureDatalakeStoreFileSystemEndpoint
keyvaultDns = var.keyvaultDns
mariadbServerEndpoint = var.mariadbServerEndpoint
mhsmDns = var.mhsmDns
mysqlServerEndpoint = var.mysqlServerEndpoint
postgresqlServerEndpoint = var.postgresqlServerEndpoint
sqlServerHostname = var.sqlServerHostname
storageEndpoint = var.storageEndpoint
storageSyncEndpoint = var.storageSyncEndpoint
synapseAnalyticsEndpoint = var.synapseAnalyticsEndpoint
activeDirectory = var.activeDirectory
activeDirectoryDataLakeResourceId = var.activeDirectoryDataLakeResourceId
activeDirectoryGraphResourceId = var.activeDirectoryGraphResourceId
activeDirectoryResourceId = var.activeDirectoryResourceId
appInsightsResourceId = var.appInsightsResourceId
appInsightsTelemetryChannelResourceId = var.appInsightsTelemetryChannelResourceId
attestationResourceId = var.attestationResourceId
azmirrorStorageAccountResourceId = var.azmirrorStorageAccountResourceId
batchResourceId = var.batchResourceId
gallery = var.gallery
logAnalyticsResourceId = var.logAnalyticsResourceId
management = var.management
mediaResourceId = var.mediaResourceId
microsoftGraphResourceId = var.microsoftGraphResourceId
ossrdbmsResourceId = var.ossrdbmsResourceId
portal = var.portal
resourceManager = var.resourceManager
sqlManagement = var.sqlManagement
synapseAnalyticsResourceId = var.synapseAnalyticsResourceId
vmImageAliasDoc = var.vmImageAliasDoc
}
)
}
107 changes: 107 additions & 0 deletions caf_solution/variables.cloud.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
variable "cloud" {
description = "Cloud configuration objects"
default = {}
}

# Azure Public Cloud defaults for non-Rover use
# Rover updates values based on active cloud

variable "acrLoginServerEndpoint" {
default = ".azurecr.io"
}
variable "attestationEndpoint" {
default = ".attest.azure.net"
}
variable "azureDatalakeAnalyticsCatalogAndJobEndpoint" {
default = "azuredatalakeanalytics.net"
}
variable "azureDatalakeStoreFileSystemEndpoint" {
default = "azuredatalakestore.net"
}
variable "keyvaultDns" {
default = ".vault.azure.net"
}
variable "mariadbServerEndpoint" {
default = ".mariadb.database.azure.com"
}
variable "mhsmDns" {
default = ".managedhsm.azure.net"
}
variable "mysqlServerEndpoint" {
default = ".mysql.database.azure.com"
}
variable "postgresqlServerEndpoint" {
default = ".postgres.database.azure.com"
}
variable "sqlServerHostname" {
default = ".database.windows.net"
}
variable "storageEndpoint" {
default = "core.windows.net"
}
variable "storageSyncEndpoint" {
default = "afs.azure.net"
}
variable "synapseAnalyticsEndpoint" {
default = ".dev.azuresynapse.net"
}
variable "activeDirectory" {
default = "https://login.microsoftonline.com"
}
variable "activeDirectoryDataLakeResourceId" {
default = "https://datalake.azure.net/"
}
variable "activeDirectoryGraphResourceId" {
default = "https://graph.windows.net/"
}
variable "activeDirectoryResourceId" {
default = "https://management.core.windows.net/"
}
variable "appInsightsResourceId" {
default = "https://api.applicationinsights.io"
}
variable "appInsightsTelemetryChannelResourceId" {
default = "https://dc.applicationinsights.azure.com/v2/track"
}
variable "attestationResourceId" {
default = "https://attest.azure.net"
}
variable "azmirrorStorageAccountResourceId" {
default = "null"
}
variable "batchResourceId" {
default = "https://batch.core.windows.net/"
}
variable "gallery" {
default = "https://gallery.azure.com/"
}
variable "logAnalyticsResourceId" {
default = "https://api.loganalytics.io"
}
variable "management" {
default = "https://management.core.windows.net/"
}
variable "mediaResourceId" {
default = "https://rest.media.azure.net"
}
variable "microsoftGraphResourceId" {
default = "https://graph.microsoft.com/"
}
variable "ossrdbmsResourceId" {
default = "https://ossrdbms-aad.database.windows.net"
}
variable "portal" {
default = "https://portal.azure.com"
}
variable "resourceManager" {
default = "https://management.azure.com/"
}
variable "sqlManagement" {
default = "https://management.core.windows.net:8443/"
}
variable "synapseAnalyticsResourceId" {
default = "https://dev.azuresynapse.net"
}
variable "vmImageAliasDoc" {
default = "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json"
}