Azure Data Lake Store File

This page shows how to write Terraform for Data Lake Store File and write them securely.

azurerm_data_lake_store_file (Terraform)

The Store File in Data Lake can be configured in Terraform with the resource name azurerm_data_lake_store_file. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L7
resource "azurerm_data_lake_store_file" "this" {
  account_name     = var.account_name
  local_file_path  = var.local_file_path
  remote_file_path = var.remote_file_path

  dynamic "timeouts" {
main.tf#L7
resource "azurerm_data_lake_store_file" "this" {
  account_name     = var.account_name
  local_file_path  = var.local_file_path
  remote_file_path = var.remote_file_path

  dynamic "timeouts" {

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a Azure Data Lake Store File.

Note: This resoruce manages an Azure Data Lake Storage Gen1, previously known as Azure Data Lake Store.

Note: If you want to change the data in the remote file without changing the local_file_path, then taint the resource so the azurerm_data_lake_store_file gets recreated with the new data.

Tips: Best Practices for The Other Azure Data Lake Resources

In addition to the azurerm_data_lake_store, Azure Data Lake has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.

risk-label

azurerm_data_lake_store

Ensure to enable the encryption of data lake storage

It is better to enable the encryption of Data Lake storage.

Review your Azure Data Lake settings

In addition to the above, there are other security points you should be aware of making sure that your .tf files are protected in Shisho Cloud.

Azure Resource Manager Example

Azure Resource Manager code does not have the related resource.

Frequently asked questions

What is Azure Data Lake Store File?

Azure Data Lake Store File is a resource for Data Lake of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Data Lake Store File?

For Terraform, the kevinhead/azurerm and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.