From 1b0e8b1a7acdb038d26bca405342d2a6c7459ac1 Mon Sep 17 00:00:00 2001 From: John Dewey Date: Wed, 6 Nov 2024 12:29:38 -0800 Subject: [PATCH] moved examples to the corelight deployment guide --- README.md | 4 ++- examples/deployment/main.tf | 63 --------------------------------- examples/deployment/versions.tf | 16 --------- 3 files changed, 3 insertions(+), 80 deletions(-) delete mode 100644 examples/deployment/main.tf delete mode 100644 examples/deployment/versions.tf diff --git a/README.md b/README.md index 3fc8e4e..3dea909 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,9 @@ module "sensor" { The variables for this module all have default values that can be overwritten to meet your naming and compliance standards. -Deployment examples can be found [here](examples). +Deployment examples can be found [here][]. + +[here]: https://github.com/corelight/corelight-cloud/tree/main/terraform/azure-scaleset-sensor ## License diff --git a/examples/deployment/main.tf b/examples/deployment/main.tf deleted file mode 100644 index 529940f..0000000 --- a/examples/deployment/main.tf +++ /dev/null @@ -1,63 +0,0 @@ -locals { - subscription_id = "" - resource_group_name = "corelight" - location = "eastus" - license = "" - tags = { - terraform : true, - purpose : "Corelight" - } - fleet_token = "b1cd099ff22ed8a41abc63929d1db126" - fleet_url = "https://fleet.example.com:1443/fleet/v1/internal/softsensor/websocket" -} - -#################################################################################################### -# Create a resource group for the corelight resources -#################################################################################################### -resource "azurerm_resource_group" "sensor_rg" { - location = local.location - name = local.resource_group_name - - tags = local.tags -} - -#################################################################################################### -# Get data on the existing vnet and create a subnet in that vnet for the sensor -#################################################################################################### -data "azurerm_virtual_network" "existing_vnet" { - name = "" - resource_group_name = "" -} - -#################################################################################################### -# Deploy the Sensor -#################################################################################################### -module "sensor" { - source = "../.." - - license_key = local.license - location = local.location - resource_group_name = azurerm_resource_group.sensor_rg.name - virtual_network_name = data.azurerm_virtual_network.existing_vnet.name - virtual_network_resource_group = "" - virtual_network_address_space = "" - corelight_sensor_image_id = "" - community_string = "" - fleet_token = local.fleet_token - fleet_url = local.fleet_url - sensor_ssh_public_key = "" - - # (Optional) Cloud Enrichment Variables - enrichment_storage_account_name = "" - enrichment_storage_container_name = "" - tags = local.tags -} - -#################################################################################################### -# (Optional) Assign the VMSS identity access to the enrichment bucket if enabled -#################################################################################################### -resource "azurerm_role_assignment" "enrichment_data_access" { - principal_id = module.sensor.sensor_identity_principal_id - scope = "" - role_definition_name = "Storage Blob Data Reader" -} diff --git a/examples/deployment/versions.tf b/examples/deployment/versions.tf deleted file mode 100644 index 7a8b113..0000000 --- a/examples/deployment/versions.tf +++ /dev/null @@ -1,16 +0,0 @@ -terraform { - required_version = ">=1.3.2" - - required_providers { - azurerm = { - source = "hashicorp/azurerm" - version = ">=3.97.1" - } - } -} - -provider "azurerm" { - features {} - subscription_id = local.subscription_id -} -