ELB does not terminate on farm termination

7 views
Skip to first unread message

mavinman

unread,
Mar 12, 2012, 4:10:06 PM3/12/12
to scalr-discuss
When I terminate a farm, Scalr asks me if I would like all cloud
objects like ELBs or Elastic IPs to be terminated as well. If I
select that option, the ELB I have attached to a specific role in that
farm does not terminate. The EC2 instances associated with the role
do terminate correctly.

mavinman

unread,
Mar 12, 2012, 4:48:38 PM3/12/12
to scalr-discuss
Looks like this was just never implemented. The signature to the
constructor for FarmTerminatedEvent is:

public function __construct($RemoveZoneFromDNS, $KeepElasticIPs,
$TermOnSyncFail, $KeepEBS)

The KeepElasticIPs and KeepEBS is where deleteCloudObjects is passed
in. These are dealt with later in event handlers, however nowhere is
there anything dealing with ELBs. This is most likely a bug.

Srini

unread,
Mar 13, 2012, 6:40:28 AM3/13/12
to scalr-...@googlegroups.com
Given that AWS will keep charging for the "running" ELB, I guess this is important that it gets deleted.  Maybe we can write a script on the farm terminate event to delete the ELB?

Sriini

mavinman

unread,
Mar 13, 2012, 12:44:31 PM3/13/12
to scalr-discuss
Yes, pretty much it'll look like the Eip event handler's
onFarmTerminate. There's already an Elb event handler, so we probably
just need to add the code there.
Reply all
Reply to author
Forward
0 new messages