You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added missing environment output
* Added the ability to provide a list that defines the order and values in the id output and Name tag
* Add absolute URLs to examples
* Simplify TF code
* Update README
* Update README
This will create an `id` with the value of `eg-prod-bastion-public`.
55
+
This will create an `id` with the value of `eg-prod-bastion-public` because when generating `id`, the default order is `namespace`, `environment`, `stage`, `name`, `attributes`
56
+
(you can override it by using the `label_order` variable, see [Advanced Example 3](#advanced-example-3)).
56
57
57
58
Now reference the label when creating an instance:
Copy file name to clipboardExpand all lines: README.yaml
+61-22Lines changed: 61 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,8 @@ usage: |-
65
65
}
66
66
```
67
67
68
-
This will create an `id` with the value of `eg-prod-bastion-public`.
68
+
This will create an `id` with the value of `eg-prod-bastion-public` because when generating `id`, the default order is `namespace`, `environment`, `stage`, `name`, `attributes`
69
+
(you can override it by using the `label_order` variable, see [Advanced Example 3](#advanced-example-3)).
69
70
70
71
Now reference the label when creating an instance:
71
72
@@ -241,28 +242,34 @@ usage: |-
241
242
tags = ["${module.label.tags_as_list_of_maps}"]
242
243
}
243
244
```
244
-
### Advanced Example 3 as per the [complete example](./examples/complete)
245
-
This example shows how you can pass the `context` output of one label module to the next label_module.
246
-
Allowing you to create one label that has the base set of values, and then creating every extra label
245
+
246
+
### Advanced Example 3
247
+
248
+
See [complete example](./examples/complete)
249
+
250
+
This example shows how you can pass the `context` output of one label module to the next label_module,
251
+
allowing you to create one label that has the base set of values, and then creating every extra label
0 commit comments