Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #184 from davesee/davesee/sovereign_cloud_vars
Browse files Browse the repository at this point in the history
Add sovereign cloud endpoints and suffix environment variables (part 2)
  • Loading branch information
arnaudlh committed May 27, 2021
2 parents 25c4e14 + fd8f656 commit a76b84a
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 0 deletions.
1 change: 1 addition & 0 deletions caf_solution/landingzone.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,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"
}

0 comments on commit a76b84a

Please sign in to comment.