From 7927779a4b1f38df409fde6a06f3a9d0f97e8881 Mon Sep 17 00:00:00 2001 From: hickeydh-aws <88673813+hickeydh-aws@users.noreply.github.com> Date: Wed, 7 Feb 2024 15:42:00 -0600 Subject: [PATCH] update retry logic to match error --- .../Add-ons/opensiem/lambdas/common/src/backoff.ts | 1 + src/lib/common/src/aws/backoff.ts | 1 + src/lib/custom-resources/cdk-cfn-utils/cdk/index.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/reference-artifacts/Add-ons/opensiem/lambdas/common/src/backoff.ts b/reference-artifacts/Add-ons/opensiem/lambdas/common/src/backoff.ts index 63bcd0024..1756c5a66 100644 --- a/reference-artifacts/Add-ons/opensiem/lambdas/common/src/backoff.ts +++ b/reference-artifacts/Add-ons/opensiem/lambdas/common/src/backoff.ts @@ -51,6 +51,7 @@ export const isThrottlingError = (e: any) => e.code === 'InsufficientDeliveryPolicyException' || // Retry for ConfigService e.code === 'NoAvailableDeliveryChannelException' || // Retry for ConfigService e.code === 'ConcurrentModifications' || // Retry for AssociateHostedZone + e.code === 'ConcurrentModification' || // Retry for AssociateHostedZone e.code === 'TooManyRequestsException' || e.code === 'Throttling' || e.code === 'ThrottlingException' || diff --git a/src/lib/common/src/aws/backoff.ts b/src/lib/common/src/aws/backoff.ts index 63bcd0024..1756c5a66 100644 --- a/src/lib/common/src/aws/backoff.ts +++ b/src/lib/common/src/aws/backoff.ts @@ -51,6 +51,7 @@ export const isThrottlingError = (e: any) => e.code === 'InsufficientDeliveryPolicyException' || // Retry for ConfigService e.code === 'NoAvailableDeliveryChannelException' || // Retry for ConfigService e.code === 'ConcurrentModifications' || // Retry for AssociateHostedZone + e.code === 'ConcurrentModification' || // Retry for AssociateHostedZone e.code === 'TooManyRequestsException' || e.code === 'Throttling' || e.code === 'ThrottlingException' || diff --git a/src/lib/custom-resources/cdk-cfn-utils/cdk/index.ts b/src/lib/custom-resources/cdk-cfn-utils/cdk/index.ts index 576d54c0d..a70c25f58 100644 --- a/src/lib/custom-resources/cdk-cfn-utils/cdk/index.ts +++ b/src/lib/custom-resources/cdk-cfn-utils/cdk/index.ts @@ -53,6 +53,7 @@ export const isThrottlingError = (e: any) => e.code === 'InsufficientDeliveryPolicyException' || // Retry for ConfigService e.code === 'NoAvailableDeliveryChannelException' || // Retry for ConfigService e.code === 'ConcurrentModifications' || // Retry for AssociateHostedZone + e.code === 'ConcurrentModification' || // Retry for AssociateHostedZone e.code === 'TooManyRequestsException' || e.code === 'Throttling' || e.code === 'ThrottlingException' ||