Why are my daily SMS usage reports from Amazon SNS not appearing in my Amazon S3 bucket?

Last updated: 2021-08-09

I subscribed to daily SMS usage reports from Amazon Simple Notification Service (Amazon SNS). However, the reports aren't appearing in the Amazon Simple Storage Service (Amazon S3) bucket that I created to receive the reports. How do I troubleshoot the issue?

Resolution

Important: It takes 24 hours for an SMS usage report to be available in the Amazon S3 bucket that you created to receive the reports. If more than 24 hours has passed and the report still hasn't populated in your Amazon S3 bucket, then follow the troubleshooting steps in this article.

Verify that your S3 bucket policy has the required permissions

Review your S3 bucket policy to confirm that it allows Amazon SNS to perform the following actions:

To review and edit your S3 bucket policy, follow the instructions in Adding a bucket policy using the Amazon S3 console. For an example bucket policy that includes the required permissions, see Subscribing to daily usage reports.

Verify that you've subscribed the correct S3 bucket to receive daily SMS usage reports

Follow the instructions in the To subscribe to daily usage reports section of Subscribing to daily usage reports. Make sure that the S3 bucket that you subscribed is the same bucket that you verified has the required permissions to receive the reports.

Test the setup

Send two or more SMS messages using Amazon SNS. If your S3 bucket is configured correctly, then Amazon SNS puts a CSV file with usage data in the following location after 24 hours:

<my-s3-bucket>/SMSUsageReports/<region>/YYYY/MM/DD/00x.csv.gz

Note: Each file can contain up to 50,000 records. If the records for a day exceed this quota, then Amazon SNS adds multiple files. For an example daily usage report, see Viewing daily SMS usage reports.


Did this article help?


Do you need billing or technical support?