Skip to content

Terraform module to normalize strings (replace accents, trim special characters)

License

Notifications You must be signed in to change notification settings

Olivr/terraform-null-normalize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-null-normalize

Normalize strings (replace accents, trim special characters).

Usage

terraform plan --var string='Héloïse!'

Changes to Outputs:
  + latinized  = "Heloise!"
  + lower      = "heloise"
  + normalized = "Heloise"
  + title      = "Heloise"
  + upper      = "HELOISE"

Inputs

Name Description Type Default Required
string String to normalize. string n/a yes

Outputs

Name Description
latinized Latinized string (only special letters have been replaced).
lower Normalized string in lower case.
normalized Normalized string (special letters replaced and trimmed of other symbold except numbers and '-').
title Normalized string in title case.
upper Normalized string in upper case.

Contributing

All contributions are welcome!

Generate documentation with terraform-docs .

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

About

Terraform module to normalize strings (replace accents, trim special characters)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages