Terraform Null Label Versions Save

Terraform Module to define a consistent naming convention by (namespace, stage, name, [attributes])

0.19.1

3 years ago
Include all context inputs as normalized outputs @Nuru (#100)

Enhancement to #99

what

  • Include all context inputs as normalized outputs

why

  • Enable a consistent pattern of module.this.context.var to reference the input value with null defaults and module.this.var to reference the normalized value with nulls replaced by actual default values.

references

  • See #99: Standardize context for input and chaining

0.19.0

3 years ago
Standardize `context` for input and chaining @Nuru (#99)

what

  • Refine the context object concept:
    • The previous context output contained normalized and generated data. This has now been renamed normalized_context
    • The new context object output simply propagates the input unmodified
    • The new context.tf file can be dropped into any module to provide standard context inputs and a context output (module.this.context) that can be fed into other modules
  • Refine the id length limit:
    • Rename id_max_length to id_length_limit
    • Prevent consecutive delimiters and at the same time ensure that if the id is truncated, it is truncate to exactly id_length_limit characters
  • Ensure that it is possible to eliminate delimiters by setting delimiter = "". Closes #77
  • Add additional tests for all of the above.

why

  • Provide a consistent interface to our modules, allow chaining, and provide something like a global setting as requested in #88
  • Make length limit for id more intuitive. Since id is also used as a tag value, and AWS limits tag value length to 255 characters, limit the id length by default so it will not break AWS.
  • Some environments do not allow non-alphabetic characters in names
  • Greater code coverage for testing helps prevent bugs from creeping in as new features are added

0.18.0

3 years ago

This is a pre-release, to thank @tibbing for his contribution. There will be breaking changes to this feature in the next release.

#98 Thanks to @tibbing

  • Adds a new optional variable id_max_length, that when set to a value greater than 0 will limit the length of ID output to given value.
  • The truncated ID is still disambiguated by suffixing the first 5 characters of the md5 hash of the full ID.
  • The full ID will still be available as a new output id_full.
  • The default value of id_max_length is 0, so that the change is not breaking any existing usages.

0.17.0

3 years ago

0.16.0

4 years ago

what

  • Cleaned up code, removed unnecessary step
  • Removed provider code for null_resource from versions

why

0.15.0

4 years ago

what

  • Replace null_resource with Terraform 0.12 for-logic

Why

  • No provider dependency, less resources

0.14.1

4 years ago

what

  • Fix example
  • Apply TF 0.12 syntax

why

  • Remove TF version pinning from the provider in the example
  • TF 0.12 prefers using list index to get items from a list

0.14.0

4 years ago

what

  • Use required_providers to pin Terraform providers

why

  • Pinning the module's providers version in required_providers block allows specifying only the required provider version for the module without the need to specify all providers with versions explicitly

0.13.0

4 years ago

what

  • Add versions.tf

why

  • Standardize on a file name to pin Terraform and provider versions
  • The file with a standard name is easy to check manually by users and automatically by scripts
  • versions.tf is also automatically added by terraform 0.12upgrade tool

0.12.2

4 years ago

what

  • Update Codefresh badge

why

  • Codefresh test pipeline has been moved to Codefresh terraform-modules project