Tag: aws-javascript-sdk

SNS don't bind subscribe and publish

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

Set SNS Return Subscription ARN

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

Client-side KMS reencryption

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

AWS client not reused in a Lambda function

Recreating AWS clients in each Lambda function invocation is expensive.

Batch request with unchecked failures

Unchecked failures can lead to data loss.

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.

Missing pagination

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