This is a template github repo, for a terraform module. A new terraform module, should use this as its starting point. This repo follows the terraform standard module structure.
Inline example implementation of the module. This is the most basic example of what it would look like to use this module.
module "minimal" {
source = "git::https://github.com/Datatamer/terraform-azure-adls-gen2?ref=x.y.z"
instance_name = "tamradlsgen2"
resource_group_name = "example-resource-group"
location = "East US 2"
}
Smallest complete fully working example. This example might require extra resources to run the example.
This modules creates:
- 1 Azure storage account
- 1 ADLS Gen2 filesystem container
Name | Version |
---|---|
terraform | >= 0.12 |
azurerm | >= 2.60.0 |
Name | Version |
---|---|
azurerm | >= 2.60.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
instance_name | Name of ADLS Gen2 instance (lowercase and numbers only, must be fewer than 18 characters.) | string |
n/a | yes |
location | Location of resource group | string |
n/a | yes |
resource_group_name | Name of resource group | string |
n/a | yes |
access_tier | Storage account access tier | string |
"Hot" |
no |
account_kind | Storage account kind | string |
"StorageV2" |
no |
fs_properties | Map of additional properties to assign to the Gen2 filesystem | map(string) |
null |
no |
replication_type | Storage account replication type | string |
"RAGRS" |
no |
Name | Description |
---|---|
gen2_fs_id | ID of the ADLS Gen2 filesystem |
gen2_fs_name | Name of the ADLS Gen2 filesystem |
storage_account_id | ID of the ADLS Gen2 storage account |
storage_account_name | Name of the ADLS Gen2 storage account |
storage_account_primary_access_key | Primary access key for the ADLS Gen2 storage account |
storage_account_primary_connection_string | Primary connection string for the ADLS Gen2 storage account |
storage_account_primary_dfs_enpoint | Primary DFS endpoint for the ADLS Gen2 storage account |
storage_account_primary_dfs_host | Hostname and port for DFS storage for the ADLS Gen2 storage account |
This repo is based on:
Storage account redundancy: https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy
ADLS Gen2 storage accounts must be Standard tier: https://www.terraform.io/docs/providers/azurerm/r/storage_account.html#is_hns_enabled
Run make terraform/docs
to generate the section of docs around terraform inputs, outputs and requirements.
Run make lint
, this will run terraform fmt, in addition to a few other checks to detect whitespace issues.
NOTE: this requires having docker working on the machine running the test
- Update version contained in
VERSION
- Document changes in
CHANGELOG.md
- Create a tag in github for the commit associated with the version
Apache 2 Licensed. See LICENSE for full details.