awssum-amazon-route53

AwsSum plugin for Amazon Route53.

npm install awssum-amazon-route53
427 downloads in the last day
1 579 downloads in the last week
5 353 downloads in the last month

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.

Example

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');
});

Operations

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

CreateHostedZone

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');
});

GetHostedZone

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

DeleteHostedZone

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

ListHostedZones

r53.ListHostedZones(function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});

ChangeResourceRecordSets

ToDo.

ListResourceRecordSets

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

GetChange

ToDo.

Author

Written by Andrew Chilton - Blog - Twitter.

License

(Ends)

npm loves you