route53-updater
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -212,5 +212,5 @@ var assert = require("assert-plus"); | ||
if (action === "CREATE") { | ||
createRecordSet(hostedZone.Id, params.recordSetName, params.type || "CNAME", value, params.ttl || 300, cb); | ||
createRecordSet(hostedZone.Id, params.recordSetName, params.type || "CNAME", value, params.ttl || 60, cb); | ||
} else if (action === "UPDATE") { | ||
updateRecordSet(hostedZone.Id, params.recordSetName, params.type || "CNAME", value, params.ttl || 300, cb); | ||
updateRecordSet(hostedZone.Id, params.recordSetName, params.type || "CNAME", value, params.ttl || 60, cb); | ||
} | ||
@@ -217,0 +217,0 @@ } |
{ | ||
"name": "route53-updater", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Updating a Route53 resource set with meta-data of EC2 instance", | ||
@@ -5,0 +5,0 @@ "keywords": ["Route53", "AWS"], |
@@ -9,2 +9,4 @@ [![Build Status](https://secure.travis-ci.org/widdix/node-route53-updater.png)](http://travis-ci.org/widdix/node-route53-updater) | ||
Port of https://github.com/taimos/route53-updater/ | ||
## CLI Usage | ||
@@ -22,3 +24,3 @@ | ||
route53-updater --action UPDATE --hostedZoneName yourdomain.com. --recordSetName test.yourdomain.com. --ttl 300 --metadata public-hostname --type CNAME | ||
route53-updater --action UPDATE --hostedZoneName yourdomain.com. --recordSetName test.yourdomain.com. --ttl 60 --metadata public-hostname --type CNAME | ||
@@ -53,4 +55,4 @@ The instance running the script needs the following IAM access rights: | ||
* `recordSetName`: String - Name of your record set (XYZ.hostedZoneName) | ||
* `ttl`: Number - TTL in seconds (default 300) | ||
* `ttl`: Number - TTL in seconds (default 60) | ||
* `metadata`: String - Metadata field to ue als the value (default public-hostname, http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html ) | ||
* `type`: String - Type of record set (default CNAME, http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html ) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10893
56