Add cloudformation list_stack_resources.

This commit is contained in:
Steve Pulec 2015-07-13 11:05:36 -04:00
commit 7f73d7e26d
3 changed files with 75 additions and 13 deletions

View file

@ -91,6 +91,10 @@ class CloudFormationBackend(BaseBackend):
# stack.template = template
# return stack
def list_stack_resources(self, stack_name_or_id):
stack = self.get_stack(stack_name_or_id)
return stack.stack_resources
def delete_stack(self, name_or_stack_id):
if name_or_stack_id in self.stacks:
# Delete by stack id