- Create a new file on your laptop called
hello.txt
. Save the file with the following contents :hello from cookbook
or right-click and download the sample file - Go to the S3 Console and create a new S3 bucket with a unique name.
- Click the Upload button to upload the file into your bucket.
- Review the src/index.js file above. Notice the bucket name is set to
alexabucket12
. You will need to change this to the name of your new S3 bucket that you just created.
Before testing your skill, you will need to add permissions to your IAM Role to allow your Lambda function to read from S3. See the IAM Policies guide and add the AmazonS3ReadOnlyAccess
policy.
*You can learn more about S3 from the [Getting Started with S3](http://docs.aws.amazon.com/AmazonS3/latest/gsg/GetStartedWithS3.html) documentation.*
Back to the Home Page