Amazon Route53 addin for Cake
C# PowerShell Batchfile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build/scripts
nuspec
src
test
.gitattributes
.gitignore
LICENSE
README.md
ReleaseNotes.md
appveyor.yml
build-skip-restore.bat
build-skip-test.bat
build.bat
build.cake
build.ps1
cake.config

README.md

Cake.AWS.Route53

Cake Build addin for managing Amazon Route53 DNS records

Build status

cakebuild.net

Join the chat at https://gitter.im/cake-build/cake

Table of contents

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

Implemented functionality

  • Create HostedZone
  • Delete HostedZone
  • Get HostedZone
  • Get HostedZones
  • Create Resource RecordSet
  • Delete Resource RecordSet
  • Get Resource RecordSets
  • Uses AWS fallback credentials (app.config / web.config file, SDK store or credentials file, environment variables, instance profile)

Referencing

NuGet Version

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

Install-Package Cake.AWS.Route53

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

#addin "Cake.AWS.Route53"

Usage

#addin "Cake.AWS.Route53"

Task("Create-Hosted-Zone")
    .Description("Creates a hosted zone for a particular domain")
    .Does(async () =>
{
    await CreateHostedZone("test.com", new Route53Settings()
    {
        AccessKey = "blah",
        SecretKey = "blah",
        Region = RegionEndpoint.EUWest1
    });
});

Task("Create-Resource-RecordSet")
    .Description("Create or change a DNS record for a hosted zone")
    .Does(async () =>
{
    await CreateResourceRecordSet("hostedZoneId", "wwww", RRType.A, "192.168.42.123", 3600, new Route53Settings()
    {
        AccessKey = "blah",
        SecretKey = "blah",
        Region = RegionEndpoint.EUWest1
    });
});

RunTarget("Create-Resource-RecordSet");

Example

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 ELB load balancers check out Cake.AWS.ElasticLoadBalancing.

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

License

Copyright (c) 2015 - 2016 Phillip Sharpe

Cake.AWS.Route53 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.