-
-
Notifications
You must be signed in to change notification settings - Fork 167
Feature/update label #53
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
Merged
aknysh
merged 10 commits into
cloudposse:master
from
bitflight-public:feature/update_label
Jun 7, 2019
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2c7fe58
Updated label module to 0.11.1, allowed use of context
Jamie-BitFlight a6a6229
marged in master
Jamie-BitFlight 593f003
formatted and readme
Jamie-BitFlight 0bd74d8
Update label_variables.tf
Jamie-BitFlight 971fefc
Updated label to be in one file for portability. Updated some variabl…
Jamie-BitFlight 2b2f2eb
merged changes
Jamie-BitFlight 1bc89d0
updated readme
Jamie-BitFlight e691cf0
Added an identifier to the descriptions of all label module variables…
Jamie-BitFlight f5cea3b
Updated readme
Jamie-BitFlight 532549c
Updated readme
Jamie-BitFlight File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| module "label" { | ||
| source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.11.1" | ||
| attributes = ["${var.attributes}"] | ||
| namespace = "${var.namespace}" | ||
| environment = "${var.environment}" | ||
| stage = "${var.stage}" | ||
| delimiter = "${var.delimiter}" | ||
| name = "${var.name}" | ||
| tags = "${var.tags}" | ||
| additional_tag_map = "${var.additional_tag_map}" | ||
| regex_replace_chars = "${var.regex_replace_chars}" | ||
| label_order = "${var.label_order}" | ||
| context = "${var.context}" | ||
| } | ||
|
|
||
| variable "additional_tag_map" { | ||
| type = "map" | ||
| default = {} | ||
| description = "Additional tags for appending to each tag map" | ||
| } | ||
|
|
||
| variable "label_order" { | ||
| type = "list" | ||
| default = [] | ||
| description = "The naming order of the id output and Name tag" | ||
| } | ||
|
|
||
| variable "regex_replace_chars" { | ||
| type = "string" | ||
| default = "/[^a-zA-Z0-9-]/" | ||
| description = "Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`. By default only hyphens, letters and digits are allowed, all other chars are removed" | ||
| } | ||
|
|
||
| variable "tags" { | ||
| description = "Additional tags to apply to all resources that use this label module" | ||
| type = "map" | ||
| default = {} | ||
| } | ||
|
|
||
| variable "namespace" { | ||
| type = "string" | ||
| default = "" | ||
| description = "Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'" | ||
| } | ||
|
|
||
| variable "stage" { | ||
| type = "string" | ||
| default = "" | ||
| description = "Stage, e.g. 'prod', 'staging', 'dev', or 'test'" | ||
| } | ||
|
|
||
| variable "name" { | ||
| type = "string" | ||
| default = "" | ||
| description = "Solution name, e.g. 'app' or 'jenkins'" | ||
| } | ||
|
|
||
| variable "environment" { | ||
| description = "The environment name if not using stage" | ||
| default = "" | ||
| } | ||
|
|
||
| variable "attributes" { | ||
| type = "list" | ||
| description = "Any extra attributes for naming these resources" | ||
| default = [] | ||
| } | ||
|
|
||
| variable "delimiter" { | ||
| type = "string" | ||
| default = "-" | ||
| description = "Delimiter to be used between `namespace`, `stage`, `name` and `attributes`" | ||
| } | ||
|
|
||
| variable "context" { | ||
| type = "map" | ||
| description = "The context output from an external label module to pass to the label modules within this module" | ||
| default = {} | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.