-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] slim down to null_data_source and exclude_label_tags
#23
Conversation
I think this is a good suggestion. Can we think of another name for e.g. |
@Jamie-BitFlight what do you think about this enhancement? Also, I think there's some danger here if the |
Also, what about doing something different: adding support for a
|
outputs.tf
Outdated
@@ -24,7 +24,7 @@ output "attributes" { | |||
} | |||
|
|||
output "tags" { | |||
value = "${local.tags}" | |||
value = "${local.tags[var.user_tags_only ? "user" : "all"]}" | |||
description = "Normalized Tag map" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, you've mentioned tags as normalized . In fact there's no normalization... keys are untouched and basically everything is outputted exactly as it was passed via variable plus Name/Stage/Namespace...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the normalized fields:
https://github.com/stackfeed/terraform-null-label/blob/c0d03bea486fc175d6e555737bd98acb4235fb29/main.tf#L3-L7
They are lowercased. Attributes are joined with a delimiter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, right i've missed that
user_tags_only
exclude_label_tags
@osterman Hey, I've actually fixed the commit. Not sure that |
What you do you think about renaming |
Addressed in #36 |
Motivation is to provide an abstract base for other null_labels.