Added resource deletion upon stack deletion
Only implemented for ASGs and LCs since they're all we cared about for our particular problem. It should be easy to follow this pattern for other resource types, though. Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
This commit is contained in:
parent
993087f2bb
commit
39d9fbcd02
3 changed files with 21 additions and 3 deletions
|
|
@ -80,6 +80,10 @@ class FakeLaunchConfiguration(object):
|
|||
)
|
||||
return config
|
||||
|
||||
def delete(self, region_name):
|
||||
backend = autoscaling_backends[region_name]
|
||||
backend.delete_launch_configuration(self.name)
|
||||
|
||||
@property
|
||||
def physical_resource_id(self):
|
||||
return self.name
|
||||
|
|
@ -167,6 +171,10 @@ class FakeAutoScalingGroup(object):
|
|||
)
|
||||
return group
|
||||
|
||||
def delete(self, region_name):
|
||||
backend = autoscaling_backends[region_name]
|
||||
backend.delete_autoscaling_group(self.name)
|
||||
|
||||
@property
|
||||
def physical_resource_id(self):
|
||||
return self.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue