diff --git a/custom-resource/index.py b/custom-resource/index.py index d5d74fdf..72250bcc 100644 --- a/custom-resource/index.py +++ b/custom-resource/index.py @@ -447,6 +447,9 @@ def create(self): @handle_exceptions def check_statmentid_length(self, statmentid_prefix): updated_prefix = statmentid_prefix + if len(statmentid_prefix) >= 70: # StatementId length limit is 100 + updated_prefix = statmentid_prefix[:65] + statmentid_prefix[-5:] + return updated_prefix if len(statmentid_prefix) >= 70: # StatementId length limit is 100 updated_prefix = statmentid_prefix[:65] + statmentid_prefix[-5:] else: