Skip to content

Commit

Permalink
change map() to {}
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jun 3, 2022
1 parent ff0e3a7 commit e3efa60
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 23 deletions.
28 changes: 18 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,51 @@
# CHANGELOG

* v2.0.0 -- 20210528
## version 2.x

* 2.0.0 -- 20210528
- create a common set of files to not replicate the logic
- consolidate all the submodules to use the common structure

* v2.1.0 -- 20211021
* 2.1.0 -- 20211021
- sas
- add sas submodule, which can be used for a general module or a specific application module

* v2.2.0 -- 20211022
* 2.2.0 -- 20211022
- custom
- create custom submodule, requires port list passed

* v2.2.1 -- 20211022
* 2.2.1 -- 20211022
- custom
- add ingress_self_* option

* v2.2.2 -- 20211025
* 2.2.2 -- 20211025
- custom
- make ingress_self stuff work
- fix missing default egress

* v2.2.3 -- 20211026
* 2.2.3 -- 20211026
- sas
- fix ports, self_port_list

* v2.2.4 -- 20211027
* 2.2.4 -- 20211027
- common (sas, custom)
- add flag `enable_default_egress` (ALL), default is true

* 2.2.5 -- 2022-06-03
- common and web
- change map() to {}

# OLDER

## web

* v1.0.0 -- 20210604
* 1.0.0 -- 20210604
- add module version, update tags

* v1.1.0 -- 20210915
* 1.1.0 -- 20210915
- enable use of ingress_networks and egress_networks for pre-defined port list

* v1.1.1 -- 20210929
* 1.1.1 -- 20210929
- fix default egress to be 0/0 for web submodule


10 changes: 6 additions & 4 deletions common/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,12 @@ resource "aws_security_group" "this_security_group" {
}

tags = merge(
map("Name", "sg-${local.name}"),
var.tags,
map("boc:created_by", "terraform"),
map("boc:tf_module_version", local._module_version),
map("boc:vpc:info", join(" ", compact(list(var.vpc_id, var.vpc_full_name)))),
{
"Name" = "sg-${local.name}"
"boc:created_by" = "terraform"
"boc:tf_module_version" = local._module_version
"boc:vpc:info" = join(" ", compact(list(var.vpc_id, var.vpc_full_name)))
}
)
}
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "2.2.4"
_module_version = "2.2.5"
}
11 changes: 8 additions & 3 deletions web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# v1.0.0 -- 20210604
# version 1.x

* 1.0.0 -- 20210604
- add module version, update tags

# v1.1.0 -- 20210915
* 1.1.0 -- 20210915
- enable use of ingress_networks and egress_networks for pre-defined port list

# v1.1.1 -- 20210929
* 1.1.1 -- 20210929
- fix default egress to be 0/0 for web submodule

* 1.1.2 -- 2022-06-03
- change map() to {}
10 changes: 6 additions & 4 deletions web/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ resource "aws_security_group" "this_security_group" {
}

tags = merge(
map("Name", "sg-${local.name}"),
var.tags,
map("boc:created_by", "terraform"),
map("boc:tf_module_version", local._module_version),
map("boc:vpc:info", join(" ", compact(list(var.vpc_id, var.vpc_full_name)))),
{
"Name" = "sg-${local.name}"
"boc:created_by" = "terraform"
"boc:tf_module_version" = local._module_version
"boc:vpc:info" = join(" ", compact(list(var.vpc_id, var.vpc_full_name)))
}
)
}
2 changes: 1 addition & 1 deletion web/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "1.1.1"
_module_version = "1.1.2"
}

0 comments on commit e3efa60

Please sign in to comment.