Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit eec5754

Browse files
pinzonbaermat
authored andcommitted
CFN: add support for passing objects in GetAtt (#13206)
1 parent b39fe32 commit eec5754

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

localstack-core/localstack/services/cloudformation/engine/v2/change_set_model_preproc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,10 @@ def _deployed_property_value_of(
276276
property_value: Any | None = get_value_from_path(properties, property_name)
277277

278278
if property_value:
279-
if not isinstance(property_value, (str, list)):
280-
# TODO: is this correct? If there is a bug in the logic here, it's probably
281-
# better to know about it with a clear error message than to receive some form
282-
# of message about trying to use a dictionary in place of a string
279+
if not isinstance(property_value, (str, list, dict)):
280+
# Str: Standard expected type. TODO validate bools and numbers
281+
# List: Multiple resource types can return a list of values e.g. AWS::EC2::VPC.
282+
# Dict: Custom resources in CloudFormation can return arbitrary data structures.
283283
raise RuntimeError(
284284
f"Accessing property '{property_name}' from '{resource_logical_id}' resulted in a non-string value nor list"
285285
)

0 commit comments

Comments
 (0)