Avoid loading nested stack in CloudFormation Stack resource
We can obtain the reference ID of an AWS::CloudFormation::Stack resource much more cheaply by not calling nested(). Change-Id: I212aaae5c68b90b72c7d693f658c83693cc07bf4 Partial-Bug: #1731349
This commit is contained in:
parent
42b386d8a6
commit
94b62e5910
|
@ -93,10 +93,11 @@ class NestedStack(stack_resource.StackResource):
|
|||
return attributes.select_from_attribute(attribute, path)
|
||||
|
||||
def get_reference_id(self):
|
||||
if self.nested() is None:
|
||||
identifier = self.nested_identifier()
|
||||
if identifier is None:
|
||||
return six.text_type(self.name)
|
||||
|
||||
return self.nested().identifier().arn()
|
||||
return identifier.arn()
|
||||
|
||||
def handle_update(self, json_snippet, tmpl_diff, prop_diff):
|
||||
# Nested stack template may be changed even if the prop_diff is empty.
|
||||
|
|
Loading…
Reference in New Issue