Skip to content

Commit 720fa9f

Browse files
authored
CFn: support nested properties in attribute lookup (#13304)
1 parent 9f5f518 commit 720fa9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,13 +570,13 @@ def _resolve_attribute(self, arguments: str | list[str], select_before: bool) ->
570570
else:
571571
arguments_list = arguments
572572

573-
if len(arguments_list) != 2:
573+
if len(arguments_list) < 2:
574574
raise ValidationError(
575575
"Template error: every Fn::GetAtt object requires two non-empty parameters, the resource name and the resource attribute"
576576
)
577577

578578
logical_name_of_resource = arguments_list[0]
579-
attribute_name = arguments_list[1]
579+
attribute_name = ".".join(arguments_list[1:])
580580

581581
node_resource = self._get_node_resource_for(
582582
resource_name=logical_name_of_resource,

0 commit comments

Comments
 (0)