Support multiple types of AWS services [not instances]
Closed this issue · 2 comments
farhancdr commented
Hi, thanks for this wrapper. I have a project where I want to set client for multiple types of aws services like S3, DynamoDB, SQS, SNS etc. Is this possible ?
Like this:-
AwsSdkModule.register({
client: [
new SQSClient({
endpoint: process.env.AWS_SQS_ENDPOINT,
}),
new SNSClient({
endpoint: process.env.AWS_SNS_ENDPOINT,
}),
],
}),
```
zahedul commented
👍🏿
gjuoun commented
see https://github.com/deligenius/aws-sdk-v3-nest?tab=readme-ov-file#multiple-injectioninstances
Just call register()
one more time.
I'd do like this:
AwsSdkModule.register({
client: new SQSClient(),
...
}),
AwsSdkModule.register({
client: new SNSClient(),
...
}),