Git Product home page Git Product logo

terraform-azure-adls-gen2's Introduction

Terraform Module Template

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.

Examples

Basic

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"
}

Minimal

Smallest complete fully working example. This example might require extra resources to run the example.

Resources Created

This modules creates:

  • 1 Azure storage account
  • 1 ADLS Gen2 filesystem container

Requirements

Name Version
terraform >= 0.12
azurerm >= 2.60.0

Providers

Name Version
azurerm >= 2.60.0

Inputs

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

Outputs

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

References

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

Development

Generating Docs

Run make terraform/docs to generate the section of docs around terraform inputs, outputs and requirements.

Checkstyles

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

Releasing new versions

  • Update version contained in VERSION
  • Document changes in CHANGELOG.md
  • Create a tag in github for the commit associated with the version

License

Apache 2 Licensed. See LICENSE for full details.

terraform-azure-adls-gen2's People

Contributors

daniosim avatar pradeepwithtamr avatar schwartzmanb avatar souza-dan avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.