Skip to content

makdiuk/terraform_module_azure_naming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

module-azure-naming

Terraform module to build proper naming based on naming and tagging convension.

Usage

module "azure_naming" {
  source      = ".././modules/module-azure-naming"
  solution    = "organization_name"
  environment = "dev"
  location    = "westus"
  alteration  = "01"

  tags = {
    "ManagedBy" : "DevOps"
  }
}

Module Details

This module creates an null resources with correct short and full naming.

Inputs

Name Description Type Default Required
alteration Example of alteration: you spawn more than one environments in the same environment first alteration of the default deployment/environment = 01 second alteration of the deployment/environment = 02 string n/a yes
environment Environment name - example:prod/stage/dev/int string n/a yes
location location - example: westus string n/a yes
solution Solution name - example: organization_name string n/a yes
delimiter Delimiter to be used between name, etc. string "-" no
tags Additional tags (e.g. map('BusinessImpact,Moderate) map <map> no
function Function name string "" no

Outputs

Name Description
alteration Lowercased alteration.
environment Lowercased environment.
solution Lowercased solution.
function Lowercased function.
location Lowercased Azure location.
name Lowercased Solution, Environment, Location, Alteration name splatted by dash
short_environment Short version. Lowercased environment.
short_location Short version. Lowercased Azure location.
short_solution Lowercased short solution.
short_name Short version. Lowercased Solution, Environment, Location, Alteration name
function_name Lowercased Solution, Function, Environment, Location, Alteration name splatted by dash
short_function_name Short version. Lowercased Solution, Function, Environment, Location, Alteration name
tags Merge input tags with our tags.

Changelog

v 1.0.0 2024-05-15

  • Initial version

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages