Skip to content

Commit c06a394

Browse files
Force update_shared_storages to pass the string true for _mount_unmount in the efs resource (#2691)
Updates to a cluster result in boolean values for the iam_authorization and efs_encryption_in_transit variables when the mapping yaml file is loaded. Need to force strings to be consistent with the dna.json pattern.
1 parent 7d414fe commit c06a394

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ aws-parallelcluster-cookbook CHANGELOG
33

44
This file is used to list changes made in each version of the AWS ParallelCluster cookbook.
55

6+
3.10.0
7+
------
8+
9+
**ENHANCEMENTS**
10+
11+
**CHANGES**
12+
13+
**BUG FIXES**
14+
- Fixed an issue that prevented cluster updates from including EFS filesystems with encryption in transit.
15+
616
3.9.0
717
------
818

cookbooks/aws-parallelcluster-environment/recipes/config/update_shared_storages.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ def get_efs(action)
8383
next unless not_in_shared_storages_mapping["efs"].nil? || !not_in_shared_storages_mapping["efs"].include?(storage)
8484
shared_dir_array.push(storage["mount_dir"])
8585
efs_fs_id_array.push(storage["efs_fs_id"])
86-
efs_encryption_in_transit_array.push(storage["efs_encryption_in_transit"])
87-
efs_iam_authorization_array.push(storage["efs_iam_authorization"])
86+
# The EFS resource expects strings for these attributes, not booleans
87+
efs_encryption_in_transit_array.push(String(storage["efs_encryption_in_transit"]))
88+
efs_iam_authorization_array.push(String(storage["efs_iam_authorization"]))
8889
end
8990
end
9091
[shared_dir_array, efs_fs_id_array, efs_encryption_in_transit_array, efs_iam_authorization_array]

0 commit comments

Comments
 (0)