Giter Site home page Giter Site logo

Comments (2)

sdebruyn avatar sdebruyn commented on May 30, 2024

Alright, I can repro this with the following HCL:

provider "azurerm" {
  version = "~> 2.9.0"
  features {}
}

data "azurerm_client_config" "current" {

}

resource "azurerm_resource_group" "rg" {
  location = "eastus2"
  name     = "repro"
}

locals {
  amount_accounts               = 6
  amount_containers_per_account = 2
  amount_containers             = local.amount_accounts * local.amount_containers_per_account
}

resource "random_string" "random" {
  length  = 6
  special = false
  upper   = false
}

resource "azurerm_storage_account" "sa" {
  count                    = local.amount_accounts
  resource_group_name      = azurerm_resource_group.rg.name
  account_replication_type = "LRS"
  name                     = "repro${count.index}${random_string.random.result}"
  account_tier             = "Standard"
  location                 = azurerm_resource_group.rg.location
  is_hns_enabled           = true
  access_tier              = "Cool"
}

resource "azurerm_role_assignment" "ra" {
  count                = local.amount_accounts
  scope                = azurerm_storage_account.sa[count.index].id
  role_definition_name = "Storage Blob Data Owner"
  principal_id         = data.azurerm_client_config.current.object_id
}

resource "azurerm_storage_data_lake_gen2_filesystem" "filesystems" {
  count              = local.amount_containers
  depends_on         = [azurerm_role_assignment.ra]
  name               = "container${count.index}"
  storage_account_id = azurerm_storage_account.sa[floor(count.index / local.amount_containers_per_account)].id
}

from terraform-module-azure-datalake.

sdebruyn avatar sdebruyn commented on May 30, 2024

The issue will probably not occur anymore after merging #71, but I'd keep it open until the upstream issue is closed.

from terraform-module-azure-datalake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.