Skip to content

Commit d213f4c

Browse files
authored
Update E3036 and E3035 to allow more FNs (#2928)
1 parent ad6ddb6 commit d213f4c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/cfnlint/rules/resources/DeletionPolicy.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ def check_value(self, key, path, res_type):
2121

2222
valid_values = ["Delete", "Retain", "RetainExceptOnCreate", "Snapshot"]
2323

24-
supported_functions = ["Fn::FindInMap", "Fn::If", "Ref"]
24+
supported_functions = [
25+
"Fn::Sub",
26+
"Fn::Select",
27+
"Fn::FindInMap",
28+
"Fn::If",
29+
"Ref",
30+
]
2531

2632
supported_functions_joined = ", ".join(supported_functions)
2733

src/cfnlint/rules/resources/UpdateReplacePolicy.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ def check_value(self, key, path, res_type):
2121

2222
valid_values = ["Delete", "Retain", "Snapshot"]
2323

24-
supported_functions = ["Fn::FindInMap", "Fn::If", "Ref"]
24+
supported_functions = [
25+
"Fn::Sub",
26+
"Fn::Select",
27+
"Fn::FindInMap",
28+
"Fn::If",
29+
"Ref",
30+
]
2531

2632
supported_functions_joined = ", ".join(supported_functions)
2733

0 commit comments

Comments
 (0)