List all S3 buckets from an AWS Lambda function using aws-sdk

InstructorTomasz Łakomy

Share this video with your friends

Send Tweet

AWS is not awesome because of Lambda, S3, DynamoDB, IAM and other services.

It's awesome because you get to combine them together in order to solve your problems.

In this lesson we're going to learn how to use IAM roles and policies effectively in order to allow an AWS Lambda function to list all S3 buckets using the aws-sdk listBuckets method.

We're also going to learn what's the principle of least privilege in AWS

Dave Fedele
~ 4 years ago

Nice hl3 source code bucket! lol

Tomasz Łakomyinstructor
~ 4 years ago

Sshhhh! Don’t tell anyone about that!