Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 2.95 KB

File metadata and controls

52 lines (39 loc) · 2.95 KB

Terraform Azure cloud storage module

This is a Dynamic modules in Terraform to create Azure Storage Account in a subnet.

  • main.tf : contains all the resources which will be created with terraform apply command.
  • variables.tf : contains all variables required to create the resources.
  • outputs.tf : contains output attributes of the resources.

Azure cloud resources created

  • Azure Storage Account
    • Network profile( configured a subnet_id, let subnet resources will be able to communicate with the storage account privately.)
  • Azure Storage Container

Resource Naming Limitations

  • Azure Storage Account only allows name with 24 characters long and letters and numbers, does not allow any special characters.
    • Format of storage account name <environment>k8ssandrastorageaccount.

Providers

Name Version
azurerm n/a

Modules

No modules.

Resources

Name Type
azurerm_storage_account.storage_account resource
azurerm_storage_container.storage_container resource

Inputs

Name Description Type Default Required
account_tier The Storage Acount tier. string "standard" no
environment Name of the environment where infrastructure being built. string n/a yes
location Azure location where all the resources being created. string n/a yes
name Name is the prefix to use for resources that needs to be created. string n/a yes
private_subnet The subnet id of the virtual network where the virtual machines will reside. string n/a yes
replication_type The Storage Account Replication type. string "LRS" no
resource_group_name The name of the resource group in which the resources will be created. string n/a yes
tags A map of the tags to use on the resources that are deployed with this module. map(string) {} no

Outputs

Name Description
storage_account_id Azure Storage account id.
storage_container_id Azure storage container id