route53: set listHostedZonesByName for new/updated domains

This commit is contained in:
Girish Ramakrishnan
2018-05-07 13:42:10 -07:00
parent d0c427b0df
commit b9166b382d
+2 -1
View File
@@ -237,7 +237,8 @@ function verifyDnsConfig(dnsConfig, fqdn, zoneName, ip, callback) {
accessKeyId: dnsConfig.accessKeyId,
secretAccessKey: dnsConfig.secretAccessKey,
region: dnsConfig.region || 'us-east-1',
endpoint: dnsConfig.endpoint || null
endpoint: dnsConfig.endpoint || null,
listHostedZonesByName: true // new/updated creds require this perm
};
if (process.env.BOX_ENV === 'test') return callback(null, credentials); // this shouldn't be here