From the course: AWS Quick Tips for Developers
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Creating an SNS event with S3 - Amazon Web Services (AWS) Tutorial
From the course: AWS Quick Tips for Developers
Creating an SNS event with S3
- [Instructor] The simple notification service allows for AWS services to publish to an SNS topic and then that topic can trigger subscribing services. Let's look at creating a topic to kick off Lambda when a fall is added to a bucket. So I'm going to click create topic and I'm going to name it kicker for Lambda kicker, and we have to change the access policy to allow anyone to publish to this topic. That updates our JSON permissions here with the principle of asterisk. Then I'm going to create the topic. Once it's created, I can subscribe to it for my Lambda. I just have a simple Lambda here. I'm going to add the trigger, and from the dropdown, select SNS and it already has our kicker topic there so I'll just add that, and then from our bucket, we need to be able to publish, so I'm going to go to my properties, scroll down to events, add a notification, give it a name like new file, set put for the events and tell it to send to an SNS topic and we'll pick our kicker so I can save…
Contents
-
-
Amazon Web Services quick tips54s
-
(Locked)
Triggering an AWS Lambda from DynamoDB1m 25s
-
(Locked)
Scheduling a Lambda to run regularly56s
-
(Locked)
Generating an API Gateway for DynamoDB1m 15s
-
(Locked)
Allowing RDS access for multiple servers52s
-
(Locked)
Sending email from an AWS Lambda1m 33s
-
(Locked)
Monitoring AWS billing with alarms1m 13s
-
(Locked)
Setting triggers for S3 bucket events55s
-
(Locked)
Protecting an S3 bucket from deletion1m 13s
-
(Locked)
Saving money with S3 Glacier1m 1s
-
(Locked)
Using CloudTrail for user action audits1m 22s
-
(Locked)
Setting user policies with IAM groups1m 10s
-
(Locked)
Hitting an AWS Lambda via API Gateway1m 9s
-
(Locked)
Creating an SNS event with S31m 30s
-
(Locked)
Easily hosting a web app on S31m 21s
-
(Locked)
Limiting access via IAM boundaries1m 22s
-
(Locked)
Enable MFA for root security47s
-
(Locked)
IAM credential report48s
-
(Locked)
Cognito user pool triggers1m 10s
-
(Locked)
SQS1m 31s
-
(Locked)
CloudFront1m 28s
-