sts54
sts54

Reputation: 49

How to use AWS iOS SDK to listen to an S3 bucket an download a file once it gets put there

I'm writing an iOS app that is using the AWS SDK to upload and download files from an S3 bucket. Some data will be processed on EC2 and it will place a file into S3 after an unknown amount of time, so I want to have my app listen to the S3 bucket and automatically download a file with a particular name once it gets created. I've been looking through the AWS iOS API and haven't been able to find any listeners of the type I'm looking for. I also feel like AWS Lambda may be helpful here but all I've seen is about a mobile app triggering a Lambda function, not receiving a message from one. Any idea how I should go about this?

Upvotes: 0

Views: 165

Answers (1)

Yosuke
Yosuke

Reputation: 3759

Since your Amazon EC2 instance is putting a file to an Amazon S3 bucket, it can also send a push notification to your device using Amazon SNS Mobile Push Notifications. You can set up an AWS Lambda function on the S3 bucket to push the notification as well. The device then should pull the file from the S3 bucket.

Upvotes: 0

Related Questions