terraform-null-label

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

APACHE-2.0 License

Stars
633
Committers
27

Bot releases are hidden (Show)

terraform-null-label -

Published by osterman almost 6 years ago

terraform-null-label - 0.5.3

Published by aknysh about 6 years ago

what

  • Fix tags: don't include tags with empty values
  • Fix Travis URL in README

why

  • Many resources (e.g. Elastic Beanstalk) fail if provided with tags with empty values

references

  • closes #42
terraform-null-label - 0.5.2

Published by aknysh about 6 years ago

what

  • Make attributes output a list
  • Fix race conditions when processing attributes

why

  • attributes input is a list, we should keep the same type for the output
  • Due to TF limitations, there was a race condition when merging attributes using the calculated delimiter. The delimiter was always taken from the context even if it was provided in var.delimiter, and just for attributes, the other outputs were OK
terraform-null-label - 0.5.1

Published by aknysh about 6 years ago

what

  • Change how the final delimiter from the provided context or input variable is calculated

why

Fix the case where a module label is instantiated with a non-default delimiter, and then another label is generated based off the context but uses the default delimiter as the local var takes
precedence.

The only case this actually applies to is the delimiter, which has a default value of '-', however all others changed to make them consistent.

terraform-null-label - 0.5.0

Published by aknysh about 6 years ago

what

  • Add new variable that allows for providing a label_order as a list to specify which variables and in what order go into the id output and Name tag.
  • The list can include all or none of the a variable names:
    "namespace", "environment", "stage", "name", "attributes"

why

Resolves https://github.com/cloudposse/terraform-null-label/issues/35

terraform-null-label -

Published by osterman about 6 years ago

terraform-null-label - Context - Allows chaining label modules together

Published by Jamie-BitFlight about 6 years ago

The module has a new context variable and output.
The module has a new environment variable.
The module now allows all variables to be optional and follows a set of rules to generate the outputs.

Context allows the variables of one label module to be passed to the next label module.
Allowing you to create one label that has the base set of values, and then creating every extra label
as a derivative of that.

The environment variable can be used with the stage variable or alone.
It was added because in some businesses the term environment is embedded as a "known term" for the separation of resources from development to production, so to keep this module from changing the embedded nomenclature this variable was added with backwards compatibility.

terraform-null-label -

Published by osterman about 6 years ago

terraform-null-label - 0.3.7: Readme.yaml - fix avatars links

Published by vadim-hleif over 6 years ago

what

  • Remove home pages and avatars links

why

  • Build-harness does it automatically
terraform-null-label -

Published by osterman over 6 years ago

terraform-null-label - 0.3.5

Published by aknysh over 6 years ago

what

  • Update README
  • Fix make targets

why

  • Some improvements and fixes
  • Use / instead of : in make targets
terraform-null-label - 0.3.4

Published by aknysh over 6 years ago

what

  • Add support for list of tag maps

why

  • Certain kinds of resources (e.g. AWS AutoScaling groups) need them
terraform-null-label - 0.3.3

Published by aknysh over 6 years ago

what

  • Use join+splat pattern in tags

why

  • New Terraform versions complain if a resource with count is used in outputs without splat syntax

Terraform will now detect and warn about outputs containing potentially-problematic references to resources with count set where the references does not use the "splat" syntax. This identifies situations where an output may reference a resource with count = 0 even if the count expression does not currently evaluate to 0, allowing the bug to be detected and fixed before the value is later changed to 0 and would thus become an error. This usage will become a fatal error in Terraform 0.12. (#16735)

terraform-null-label - 0.3.2

Published by aknysh over 6 years ago

what

  • Use join+splat pattern for outputs using resources with count

why

  • New Terraform versions complain if a resource with count is used in outputs without splat syntax

Resource 'null_resource.default' not found for variable 'null_resource.default.triggers.id'

Terraform will now detect and warn about outputs containing potentially-problematic references to resources with count set where the references does not use the "splat" syntax. This identifies situations where an output may reference a resource with count = 0 even if the count expression does not currently evaluate to 0, allowing the bug to be detected and fixed before the value is later changed to 0 and would thus become an error. This usage will become a fatal error in Terraform 0.12. (#16735)

terraform-null-label - Fix `enabled` argument default value

Published by const-bon almost 7 years ago

What

  • Fix enabled argument default value

Why

terraform-null-label - Add Enabled Flag

Published by osterman almost 7 years ago

what

Add enabled variable which can be used to disable any resources within the module

why

If you have resources that are conditionally created and they refer to this module, your plan will always show null-label resources in the plan. As Terraform does not support conditionally including a module, this is the recommend solution

See https://github.com/hashicorp/terraform/issues/12906

terraform-null-label - Add Continuous Integration Tests

Published by osterman about 7 years ago

what

  • Validate terraform code
  • Add build status badge

why

  • Improve code quality/consistency

demo

image

depends on

terraform-null-label - New Repo Name

Published by osterman about 7 years ago

Related Projects