diff --git a/bin/validate-template.js b/bin/validate-template.js index dd3e807..d852d21 100755 --- a/bin/validate-template.js +++ b/bin/validate-template.js @@ -4,8 +4,9 @@ var cloudfriend = require('..'); var templatePath = process.argv[2]; +var region = process.argv[3] || 'us-east-1'; -cloudfriend.validate(templatePath, 'us-east-1') +cloudfriend.validate(templatePath, region) .then(function() { console.log('✔ valid'); }).catch(function(err) {