Skip to content

Commit

Permalink
Update E3036 and E3035 to allow more FNs
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Oct 24, 2023
1 parent ad6ddb6 commit fa1630d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cfnlint/rules/resources/DeletionPolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def check_value(self, key, path, res_type):

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

supported_functions = ["Fn::FindInMap", "Fn::If", "Ref"]
supported_functions = ["Fn::Sub", "Fn::Select", "Fn::FindInMap", "Fn::If", "Ref"]

supported_functions_joined = ", ".join(supported_functions)

Expand Down
2 changes: 1 addition & 1 deletion src/cfnlint/rules/resources/UpdateReplacePolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def check_value(self, key, path, res_type):

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

supported_functions = ["Fn::FindInMap", "Fn::If", "Ref"]
supported_functions = ["Fn::Sub", "Fn::Select", "Fn::FindInMap", "Fn::If", "Ref"]

supported_functions_joined = ", ".join(supported_functions)

Expand Down

0 comments on commit fa1630d

Please sign in to comment.