» azurerm_data_lake_store_file

Manages a Azure Data Lake Store File.

» Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example"
  location = "northeurope"
}

resource "azurerm_data_lake_store" "example" {
  name                = "consumptiondatalake"
  resource_group_name = "${azurerm_resource_group.example.name}"
  location            = "${azurerm_resource_group.example.location}"
}

resource "azurerm_data_lake_store_file" "example" {
  resource_group_name = "${azurerm_resource_group.example.name}"
  local_file_path     = "/path/to/local/file"
  remote_file_path    = "/path/created/for/remote/file"
}

» Argument Reference

The following arguments are supported:

  • account_name - (Required) Specifies the name of the Data Lake Store for which the File should created.

  • local_file_path - (Required) The path to the local file to be added to the Data Lake Store.

  • remote_file_path - (Required) The path created for the file on the Data Lake Store.

» Import

Date Lake Store File's can be imported using the resource id, e.g.

terraform import azurerm_data_lake_store_file.exampleexample.azuredatalakestore.net/test/example.txt