Girish Ramakrishnan
2023-12-27 12:23:09 +01:00
parent 25ba312636
commit 37ed87f9c1
2 changed files with 8 additions and 1 deletions

View File

@@ -2722,3 +2722,5 @@
[7.6.3]
* postgres: do not clear search_path for restore
* route53: retry on rate limit errors

View File

@@ -39,7 +39,12 @@ function getDnsCredentials(domainConfig) {
const credentials = {
accessKeyId: domainConfig.accessKeyId,
secretAccessKey: domainConfig.secretAccessKey,
region: domainConfig.region
region: domainConfig.region,
maxRetries: 20,
// route53 has a limit of 5 req/sec/region - https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-requests
retryDelayOptions: {
customBackoff: (/* retryCount, error */) => 3000 // constant backoff - https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html#retryDelayOptions-property
},
};
if (domainConfig.endpoint) credentials.endpoint = new AWS.Endpoint(domainConfig.endpoint);