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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,16 @@ and this project adheres to
9
9
10
10
## [Unreleased]
11
11
12
+
## [2.0.0] - 2019-08-16
13
+
14
+
### Changed
15
+
- Deprecate the `parent_id` and `parent_type` variables in favor of a single `parent` variable [#8]
16
+
- Change outputs to follow the same conventions used in the `cloud-storage` and `service-accounts` modules ([migration instructions](docs/upgrading_to_folders_v2.0.md)) [#9]
17
+
- Rename map outputs dropping the `names_and_` prefix
The v2.0 release of the Folders module is a backwards incompatible release, with two important sets of changes:
4
+
5
+
- the `parent_id` and `parent_type` variables have now been combined into a single `parent` variable
6
+
- module outputs have changed to bring them in line with other modules
7
+
8
+
## Migration Instructions
9
+
10
+
### Single parent variable
11
+
12
+
The folder parent is now specificied using a single `parent` variable, that uses the full resource id path.
13
+
14
+
To create folders at the organization level, prefix the organization id with `organizations/`:
15
+
16
+
`parent = "organizations/0123456789"`
17
+
18
+
To create folders under an existing folder, prefix the existing folder id with `folders/`:
19
+
20
+
`parent = "folders/0123456789"`
21
+
22
+
### Rename map-style outputs
23
+
24
+
The `names_and_display_names` and `names_and_ids` outputs have been deprecated, and new ones are available in their place that expose the same data:
25
+
26
+
-`names_and_display_names` is now `names`
27
+
-`names_and_ids` is now `ids`
28
+
29
+
### Leverage new output types
30
+
31
+
New output types have also been added that leverage new Terraform 0.12 features or facilitate specific use cases. They are describe below.
32
+
33
+
#### Folder resources
34
+
35
+
Terraform 0.12 makes it possible to expose complete resources alongside their attributes, so two new outputs have been added:
36
+
37
+
-`folder` is the first folder resource for single folder creation use cases
38
+
-`folders` are all the folder resources as a list
39
+
40
+
#### Single folder use
41
+
42
+
When managing a single folder per module invocation, new outputs are available that directly expose its attributes:
43
+
44
+
-`folder` is the complete folder resource described above
45
+
-`name` is a string output containing the display name of the folder, eg `"Test"`
46
+
-`id` is a string output containing the numeric id of the folder, eg `"folders/12345"`
47
+
48
+
#### Lists
49
+
50
+
New list outputs have been added to expose folder attributes and preserve the ordering of the `names` variable, as maps reorder keys lexically and might introduce subtle bugs when used as lists through `values`:
51
+
52
+
-`names_list` is the list of folder display names as strings
0 commit comments