Skip to content

Commit f25b7cb

Browse files
maartenvanderhoefaknysh
authored andcommitted
Removed unnecessary step for tags_as_list_of_maps (#86)
1 parent d6d24b8 commit f25b7cb

File tree

3 files changed

+16
-23
lines changed

3 files changed

+16
-23
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -668,23 +668,23 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
668668
|---|---|---|---|---|---|---|---|---|
669669

670670
[osterman_homepage]: https://github.com/osterman
671-
[osterman_avatar]: https://github.com/osterman.png?size=150
671+
[osterman_avatar]: https://img.cloudposse.com/150x150/https://github.com/osterman.png
672672
[aknysh_homepage]: https://github.com/aknysh
673-
[aknysh_avatar]: https://github.com/aknysh.png?size=150
673+
[aknysh_avatar]: https://img.cloudposse.com/150x150/https://github.com/aknysh.png
674674
[goruha_homepage]: https://github.com/goruha
675-
[goruha_avatar]: https://github.com/goruha.png?size=150
675+
[goruha_avatar]: https://img.cloudposse.com/150x150/https://github.com/goruha.png
676676
[s2504s_homepage]: https://github.com/s2504s
677-
[s2504s_avatar]: https://github.com/s2504s.png?size=150
677+
[s2504s_avatar]: https://img.cloudposse.com/150x150/https://github.com/s2504s.png
678678
[MichaelPereira_homepage]: https://github.com/MichaelPereira
679-
[MichaelPereira_avatar]: https://github.com/MichaelPereira.png?size=150
679+
[MichaelPereira_avatar]: https://img.cloudposse.com/150x150/https://github.com/MichaelPereira.png
680680
[Jamie-BitFlight_homepage]: https://github.com/Jamie-BitFlight
681-
[Jamie-BitFlight_avatar]: https://github.com/Jamie-BitFlight.png?size=150
681+
[Jamie-BitFlight_avatar]: https://img.cloudposse.com/150x150/https://github.com/Jamie-BitFlight.png
682682
[SweetOps_homepage]: https://github.com/SweetOps
683-
[SweetOps_avatar]: https://github.com/SweetOps.png?size=150
683+
[SweetOps_avatar]: https://img.cloudposse.com/150x150/https://github.com/SweetOps.png
684684
[darend_homepage]: https://github.com/darend
685-
[darend_avatar]: https://github.com/darend.png?size=150
685+
[darend_avatar]: https://img.cloudposse.com/150x150/https://github.com/darend.png
686686
[maartenvanderhoef_homepage]: https://github.com/maartenvanderhoef
687-
[maartenvanderhoef_avatar]: https://github.com/maartenvanderhoef.png?size=150
687+
[maartenvanderhoef_avatar]: https://img.cloudposse.com/150x150/https://github.com/maartenvanderhoef.png
688688

689689

690690

main.tf

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@ locals {
2727

2828
tags = merge(var.context.tags, local.generated_tags, var.tags)
2929

30-
tags_as_list_of_maps_unmerged_additional_tag_map = flatten([
31-
for key in keys(local.tags) : {
32-
key = key
33-
value = local.tags[key]
34-
}])
35-
36-
tags_as_list_of_maps = [
37-
for tag_set in local.tags_as_list_of_maps_unmerged_additional_tag_map :
38-
merge(tag_set, var.additional_tag_map)
39-
]
30+
tags_as_list_of_maps = flatten([
31+
for key in keys(local.tags) : merge(
32+
{
33+
key = key
34+
value = local.tags[key]
35+
}, var.additional_tag_map)
36+
])
4037

4138
tags_context = {
4239
# For AWS we need `Name` to be disambiguated sine it has a special meaning

versions.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
terraform {
22
required_version = "~> 0.12.0"
3-
4-
required_providers {
5-
null = "~> 2.0"
6-
}
73
}

0 commit comments

Comments
 (0)