Cake Build addin for managing Amazon Route53 DNS records
- 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)
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"
#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");
A complete Cake example can be found here.
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.
Copyright (c) 2015 - 2016 Phillip Sharpe
Cake.AWS.Route53 is provided as-is under the MIT license. For more information see LICENSE.
If this project helps you in anyway then please ⭐ the repository.