Add missing changes when creating a change set (#3039)
* Display changes when creating a change set * add change set id and description when describing stack * fix lint with flake8 and black
This commit is contained in:
parent
cb600377b4
commit
90e200f0f6
5 changed files with 51 additions and 25 deletions
|
|
@ -456,7 +456,7 @@ class ResourceMap(collections_abc.Mapping):
|
|||
cross_stack_resources,
|
||||
):
|
||||
self._template = template
|
||||
self._resource_json_map = template["Resources"]
|
||||
self._resource_json_map = template["Resources"] if template != {} else {}
|
||||
self._region_name = region_name
|
||||
self.input_parameters = parameters
|
||||
self.tags = copy.deepcopy(tags)
|
||||
|
|
@ -592,10 +592,12 @@ class ResourceMap(collections_abc.Mapping):
|
|||
self.load_parameters()
|
||||
self.load_conditions()
|
||||
|
||||
def create(self):
|
||||
def create(self, template):
|
||||
# Since this is a lazy map, to create every object we just need to
|
||||
# iterate through self.
|
||||
# Assumes that self.load() has been called before
|
||||
self._template = template
|
||||
self._resource_json_map = template["Resources"]
|
||||
self.tags.update(
|
||||
{
|
||||
"aws:cloudformation:stack-name": self.get("AWS::StackName"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue