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
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" {
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" {
Parameters
-
account_name
required - string -
id
optional computed - string -
local_file_path
required - string -
remote_file_path
required - string -
timeouts
single block
Explanation in Terraform Registry
Manages a Azure Data Lake Store File.
Note: This resoruce manages an
Azure Data Lake Storage Gen1
, previously known asAzure 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 theazurerm_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.
azurerm_data_lake_store
Ensure to enable the encryption of data lake storage
It is better to enable the encryption of Data Lake storage.
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.