adds code


In this video, I want to show you how to create a Lambda function that uploads a JSON file to S3. I will be using NodeJS, Lambda and Serverless framework to deploy the app. We need a Lambda function which permission to upload to S3 and we need an S3 bucket. To create an S3 you can either go to the AWS console or use an Infrastructure as a Service tool such as Serverless Framework. I used the latter. For the IAM policy, I will show you how to do it in the AWS Console and using Serverless Framework. Next, I will explain to you how to use the aws-sdk library in the lambda function, testing an upload of JSON file. In the last part of the video, I run a test on the entire flow. Github Repo: https://github.com/enricop89/aws-serverless-samples/tree/main/upload-to-s3-from-lambda 00:00 introduction 00:25 AWS console walkthrough 04:30 Serverless Yaml file 06:15 Lambda code 08:04 Testing If you want to learn more about AWS Services, make sure to subscribe to the channel: Youtube 🎥 - https://www.youtube.com/channel/UCrgmzG2o4xlBYzm7OB7qZFA Medium: https://enrico-portolan.medium.com/ 🌎 Find me here: Twitter - https://twitter.com/enricop89
Previous Post Next Post