File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,12 +93,13 @@ export async function subscribeToTopic(
9393 ? topicConfiguration . Name
9494 : topicConfiguration . topicName
9595 } ": ${ err . message } `
96- logger . error ( errMessage )
9796
9897 if (
9998 subscriptionConfiguration . updateAttributesIfExists &&
10099 err . message . indexOf ( 'Subscription already exists with different attributes' ) !== - 1
101100 ) {
101+ logger . warn ( `${ errMessage } . Trying to update subscription` )
102+
102103 const result = await tryToUpdateSubscription (
103104 snsClient ,
104105 topicArn ,
@@ -115,6 +116,8 @@ export async function subscribeToTopic(
115116 }
116117
117118 logger . error ( 'Failed to update subscription' )
119+ } else {
120+ logger . error ( errMessage )
118121 }
119122
120123 throw new InternalError ( {
Original file line number Diff line number Diff line change 11import type { S3ClientConfig } from '@aws-sdk/client-s3'
22import type { SNSClientConfig } from '@aws-sdk/client-sns'
33import type { SQSClientConfig } from '@aws-sdk/client-sqs'
4+ import type { STSClientConfig } from '@aws-sdk/client-sts'
45import { createLocalhostHandler } from 'fauxqs'
5-
66import { getPort } from './fauxqsInstance.ts'
77
88const isLocalstack = process . env . QUEUE_BACKEND === 'localstack'
99const port = getPort ( )
1010
11- export const TEST_AWS_CONFIG : SNSClientConfig & SQSClientConfig = {
11+ export const TEST_AWS_CONFIG : SNSClientConfig & SQSClientConfig & STSClientConfig = {
1212 endpoint : `http://localhost:${ port } ` ,
1313 region : 'eu-west-1' ,
1414 credentials : {
You can’t perform that action at this time.
0 commit comments