azurenoops / terraform-azurerm-overlays-storage-account

Terraform module overlay to create SCCA compliant Azure Storage to use with Azure NoOps.
MIT License
0 stars 2 forks source link

Support for Datalake #23

Open jrspinella opened 1 year ago

jrspinella commented 1 year ago

Is there an existing issue for this?

Description

Add is_hns_enabled to the storage account to enable the data lake. Ensure it has Storage Blob Data Contributor on enable and add a data lake gen2 filesystem.

New or Affected Resource(s)/Data Source(s)

3.55

Potential Terraform Configuration

resource "azurerm_storage_account" "storage" {
  ...
  is_hns_enabled           = var.enable_datalake
}

resource "azurerm_storage_data_lake_gen2_filesystem" "file_system" {
  count              = var.enable_datalake ? 1 : 0
  name               = var.datalake_filesystem_name
  storage_account_id = azurerm_storage_account.storage[0].id
}

References

No response

sstjean commented 11 months ago

Talk with @jrspinella to review needs for DataLake prior to starting this issue.