Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

1.5 KB
Raw Blame
/**
 * AiSOC — Azure serverless skeleton
 *
 * Provider pinning. Tested against Terraform 1.5+ and the azurerm 3.116
 * provider. The Container Apps, PostgreSQL Flexible Server, and Azure Cache
 * for Redis resources used here are all GA in the 3.x line; bump in lockstep
 * when you move to azurerm 4.x (a few attribute names changed there — see the
 * README upgrade note).
 */

terraform {
  required_version = ">= 1.5"

  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "~> 3.116"
    }
    random = {
      source  = "hashicorp/random"
      version = "~> 3.6"
    }
  }

  # State backend left intentionally unconfigured. Pick one of:
  #
  #   backend "azurerm" {
  #     resource_group_name  = "aisoc-tfstate-rg"
  #     storage_account_name = "aisoctfstate<suffix>"
  #     container_name       = "tfstate"
  #     key                  = "azure.tfstate"
  #   }
  #   backend "local" {}
  #
  # …and bootstrap the storage account once per subscription before
  # `terraform init`. See the README for the bootstrap commands.
}

provider "azurerm" {
  features {
    key_vault {
      # Let `terraform destroy` purge soft-deleted vaults so a re-apply with
      # the same name_prefix doesn't collide with a tombstoned vault.
      purge_soft_delete_on_destroy = true
    }
    resource_group {
      # Refuse to delete a resource group that still has resources Terraform
      # doesn't know about — protects against half-managed subscriptions.
      prevent_deletion_if_contains_resources = true
    }
  }
}