File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
modules/meshcloud-replicator/replicator-management-account-access Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ ## [ v0.5.1]
11
+
12
+ ### Changed
13
+
14
+ - Fixed and simplified logic for checking if unrestricted account closure is enabled using reserved key ` __meshstack_allow_close_all__ ` .
15
+
10
16
## [ v0.5.0]
11
17
12
18
### Added
Original file line number Diff line number Diff line change @@ -2,11 +2,7 @@ locals {
2
2
account_id = data. aws_caller_identity . current . account_id # current account number.
3
3
4
4
# Check if unrestricted account closure is enabled using reserved key
5
- allow_close_all_accounts = (
6
- length (var. can_close_accounts_with_tags ) == 1 &&
7
- contains (keys (var. can_close_accounts_with_tags ), " __meshstack_allow_close_all__" ) &&
8
- var. can_close_accounts_with_tags [" __meshstack_allow_close_all__" ][0 ] == " true"
9
- )
5
+ allow_close_all_accounts = jsonencode (var. can_close_accounts_with_tags ) == jsonencode ({ " __meshstack_allow_close_all__" = [" true" ] })
10
6
11
7
# Get tag restrictions (empty if unrestricted access)
12
8
tag_restrictions = local. allow_close_all_accounts ? {} : var. can_close_accounts_with_tags
You can’t perform that action at this time.
0 commit comments