10000 Fix: CFn improperly formats account_id causing IAM engine to fail whe… · localstack/localstack@eb9600f · GitHub
[go: up one dir, main page]

Skip to content

Commit eb9600f

Browse files
authored
Fix: CFn improperly formats account_id causing IAM engine to fail when using cdk (#11624)
1 parent f6d2d07 commit eb9600f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

localstack-core/localstack/services/cloudformation/engine/template_deployer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,10 @@ def resolve_placeholders_in_string(
758758
"""
759759

760760
def _validate_result_type(value: str):
761+
is_another_account_id = value.isdigit() and len(value) == len(account_id)
762+
if value == account_id or is_another_account_id:
763+
return value
764+
761765
if value.isdigit():
762766
return int(value)
763767
else:

0 commit comments

Comments
 (0)
0