- Le plus récent
- Le plus de votes
- La plupart des commentaires
SNS is a notification service and isn't built to send attachments. You can use the next pattern: Put your file as an object in S3; Send notification in SNS with the pointer to the S3 object. You'll need to define the permissions for the bucket and the object. Suggest to review: https://docs.aws.amazon.com/lambda/latest/dg/with-s3-tutorial.html and https://docs.aws.amazon.com/lambda/latest/dg/with-sns-example.html
SNS is designed to send messages, it's not designed to send files (especially large ones). You can send Base64-encoded binary data object, considering the max message size of 256KB.
See https://docs.aws.amazon.com/sns/latest/api/API_MessageAttributeValue.html for details.
For larger payloads see the pattern described in https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
Contenus pertinents
- demandé il y a 4 mois
- demandé il y a un an
- demandé il y a 3 mois
- demandé il y a un mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 7 mois
SNS shall I publish byte array message instead string and so that my subscriber read bye array convert to file put in filenet? Is it possible SNS put byte array message? Please advise