Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Feb 21, 2024
1 parent 7f78e4f commit cfb82ed
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions terraform/subscriptions/s940/prod/vulnerability-scanner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,30 @@ module "mssql-database" {
zone_redundant = false
sku_name = "S6"

admin_federated_credentials = {}
}

output "mi-client-id" {
value = module.mssql-database.mi-admin
}

## MS SQL Server
module "mssql-database-platform" {
source = "../../../modules/mssqldatabase"
env = module.config.environment
database_name = "radix-vulnerability-scan"
server_name = "sql-radix-vulnerability-scan-${module.config.environment}" # Se https://github.com/equinor/radix-platform/issues/1187
managed_identity_admin_name = "radix-id-vulnerability-scan-admin-${module.config.environment}"
admin_adgroup = var.admin-adgroup
administrator_login = "radix"
administrator_password = data.azurerm_key_vault_secret.keyvault_secrets.value
rg_name = module.resourcegroup.data.name
vnet_resource_group = module.config.vnet_resource_group
location = module.config.location
public_network_access_enabled = true
zone_redundant = false
sku_name = "S6"

admin_federated_credentials = {
github-main = {
issuer = "https://token.actions.githubusercontent.com"
Expand All @@ -43,7 +67,3 @@ module "mssql-database" {
}
}
}

output "mi-client-id" {
value = module.mssql-database.mi-admin
}

0 comments on commit cfb82ed

Please sign in to comment.