Tag: aws-javascript-sdk

Batch request with unchecked failures

Unchecked failures can lead to data loss.

Missing pagination

Missing pagination on a paginated call can lead to inaccurate results.

Set SNS Return Subscription ARN

To always return the subscription ARN, set the ReturnSubscriptionArn argument to True.

Unauthenticated Amazon SNS unsubscribe requests might succeed

Failing to set the AuthenticateOnUnsubscribe flag to True when confirming an SNS subscription can lead to unauthenticated cancellations.

Client-side KMS reencryption

Client-side decryption followed by encryption is inefficient and can lead to sensitive data leaks.

SNS don't bind subscribe and publish

Do not bind the SNS Publish operation with the SNS Subscribe or Create Topic operation.

AWS client not reused in a Lambda function

Recreating AWS clients in each Lambda function invocation is expensive.