Amazon ElasticLoadBalancing addon for Cake
C# PowerShell Batchfile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test Update build script to use tools path environment variables Jul 23, 2016
appveyor.yml Initial Release Sep 23, 2015
build.bat Initial Release Sep 23, 2015
build.cake Correct use of fallback credentials Sep 17, 2016
build.ps1 Update build script to use tools path environment variables Jul 23, 2016


Cake Build addin for configuring Amazon Elastic Load Balancers

Build status

Join the chat at

Table of contents

  1. Implemented functionality
  2. Referencing
  3. Usage
  4. Example
  5. Plays well with
  6. License
  7. Share the love

Implemented functionality

  • Register Instances
  • Deregister Instances
  • Uses AWS fallback credentials (app.config / web.config file, SDK store or credentials file, environment variables, instance profile)


NuGet Version

Cake.AWS.ElasticLoadBalancing is available as a nuget package from the package manager console:

Install-Package Cake.AWS.ElasticLoadBalancing

or directly in your build script via a cake addin directive:

#addin "Cake.AWS.ElasticLoadBalancing"


#addin "Cake.AWS.ElasticLoadBalancing"

LoadBalancingSettings settings = Context.CreateLoadBalancingSettings();

    .Description("Adds new instances to the load balancer.")
    .Does(() =>
    RegisterLoadBalancerInstances("LoadBlanerName", "instance1,instance2,instance3", settings);

    .Description("Deregisters instances from the load balancer.")
    .Does(() =>
    DeregisterLoadBalancerInstances("LoadBlanerName", "instance1,instance2,instance3", settings);

    .Description("Deregisters instances from the load balancer, using AWS Fallback credentials")
    .Does(() =>
    DeregisterLoadBalancerInstances("LoadBlanerName", "instance1,instance2,instance3", Context.CreateLoadBalancingSettings());



A complete Cake example can be found here.

Plays well with

If your routing traffic to EC2 instances its worth checking out Cake.AWS.EC2 or if your using Route53 as your DNS server check out Cake.AWS.Route53.

If your looking for a way to trigger cake tasks based on windows events or at scheduled intervals then check out CakeBoss.


Copyright (c) 2015 - 2016 Phillip Sharpe

Cake.AWS.ElasticLoadBalancing is provided as-is under the MIT license. For more information see LICENSE.

Share the love

If this project helps you in anyway then please ⭐️ the repository.