awssum-amazon-route53

AwsSum plugin for Amazon Route53.

NOTE: AwsSum is now deprecated. Please use aws-sdk instead.

awssum-amazon-route53

This is an AwsSum plugin!

You'll need to add awssum-amazon-route53 to your package.json dependencies. Both awssum and awssum-amazon are pulled in as peer dependencies.

List all your Hosted Zones:

var fmt = require('fmt');
var amazonRoute53 = require('awssum-amazon-route53');
 
var r53 = new amazonRoute53.Route53({
    'accessKeyId'     : process.env.ACCESS_KEY_ID,
    'secretAccessKey' : process.env.SECRET_ACCESS_KEY,
    'region'          : amazonS3.US_EAST_1
});
 
r53.ListHostedZones(function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});

Each example below implies you have done the initial setup as in the example above.

var args = {
    Name            : 'example.com',
    CallerReference : '8925bfec-6d6e-4a7d-af1d-c8e109962ee6',
    Comment         : 'Created 2013-03-27.',
};
 
r53.CreateHostedZone(args, function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});
r53.GetHostedZone({ HostedZoneId : 'Z414BK7QE43147' }, function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});
r53.DeleteHostedZone({ HostedZoneId : 'Z414BK7QE43147' }, function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});
r53.ListHostedZones(function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});

ToDo.

r53.ListResourceRecordSets({ HostedZoneId : 'Z414BK7QE43147' }, function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});

ToDo.

Author

Written by Andrew Chilton - Blog - Twitter.

License

(Ends)