Terraform Module to define a consistent naming convention by (namespace, stage, name, [attributes])
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.context
for input and chainingcontext
object concept:
context
output contained normalized and generated data. This has now been renamed normalized_context
context
object output simply propagates the input unmodifiedcontext.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 modulesid
length limit:
id_max_length
to id_length_limit
id
is truncated, it is truncate to exactly id_length_limit
charactersdelimiter = ""
. Closes #77id
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.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
id_max_length
, that when set to a value greater than 0 will limit the length of ID output to given value.id_full
.id_max_length
is 0, so that the change is not breaking any existing usages.