# Day 46 : Event-Driven Processing with Amazon S3 and Lambda

Welcome to Day 46. Today we will learn how to create Event-Driven processing with Amazon S3 and Lambda. In this lab, you need to create two S3 buckets. The first one is a public S3 bucket, and the second is a private S3 bucket. After that, you need to create a DynamoDB table and a Lambda function.

### What is Amazon Lambda?

In AWS, a **Lambda function** is a piece of code that runs in a "serverless" environment. "Serverless" means **AWS manages all the infrastructure for you**. You don't need to set up, update, or scale virtual machines. You just upload your code, and Lambda runs it whenever it's needed.

### What is DynamoDB?

**Amazon DynamoDB** is a serverless, fully managed **NoSQL database** service from AWS. It delivers high performance with single-digit millisecond latency at any scale, making it ideal for modern web and mobile apps.

Unlike traditional relational databases (like MySQL or PostgreSQL) that use fixed tables and columns, DynamoDB is a **key-value and document database**. This means it is very flexible and can store semi-structured data without needing a pre-defined schema.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862046202/56a5900c-24ef-4b76-a03b-2a4eadcc90cb.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862027257/b37766e8-3798-4bb5-92e2-5dff53e95461.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862070267/3b7027ac-80b0-4cc7-a5be-b0ce34936605.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862098864/061e39aa-ffbe-4aaf-8f53-1b96e4ea5ff6.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862117595/f73e4bec-0f36-4d8e-b45c-dbe63d89ba56.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862132952/5426b307-d158-4ad3-8523-415db25f797a.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862167256/bcfd0f56-ae9b-420b-8682-bffd0af3c511.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862182051/29a3bf87-4de7-4b87-9719-ac958898c456.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862215452/6b3f7fec-37b7-4476-9196-c74d5453e881.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862263198/2c5968da-d931-46a9-9194-af3b76cfc978.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862922039/7b5bd6f1-42ea-4147-a753-44b94fc74039.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862969702/7b8733a3-9df2-495e-a70b-a649563e874e.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767863280733/f6f4d5c4-cdaa-4cce-9842-39dd1d65b687.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767863938652/8021e75c-fc90-4dfb-99de-74375cef5ae1.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864005423/40a0f19d-faa8-42e8-b6e9-e03cf54dac93.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864020381/9756daea-03b8-4bc7-bd33-4da84bef661a.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864045588/bdcd4ea3-8900-4206-a714-157e41d4e005.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862713067/6e762bf6-3da1-4518-b655-ed9610dc440b.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862805442/ea2d609e-9882-4e40-9fea-ea2d27aae5d4.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862833791/06f1fbda-9591-4f1f-9d47-74962c02e4f6.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864159695/b1ab967b-6e6b-4258-9950-61f61d91207b.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767862863752/4cc34d35-463e-4d47-b645-29e5c012b372.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864284167/bbdef28c-80f7-48ee-833b-bec6f15ae855.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864333329/b9bc190f-fea7-417b-a7c7-c5544887f553.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864393174/a2ebc696-885c-4c78-bf77-94c1a0585d2d.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864407404/3697ae0d-e630-4fab-9343-252d357eaf57.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864423303/701874fd-5d3d-4721-b7e9-5cef4f4f5957.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864511705/c1839d6b-165e-448a-a48c-4b6745a5369e.png align="center")

```bash
aws s3 ls s3://xfusion-private-19833/

aws s3 cp /root/sample.zip s3://xfusion-public-8757/

aws s3 ls s3://xfusion-private-19833/

aws dynamodb scan --table-name xfusion-S3CopyLogs
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864528212/f35dfc70-0bfb-4bdd-a277-346124aaf9f1.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864610343/f2787332-5c70-4117-9f66-85ccff43bfbf.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864627109/690d2fc0-975e-4a09-af9c-f7bdaab7bbab.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1767864672797/2c6d1b3b-5cbb-4f30-b81e-9eea1d7a6f30.png align="center")

Congratulations you did it. It looks good. This lab was successfully completed without any errors. See you in day 47. If you have any issues please let me know I will be happy to assist you. Stay tuned and learn together. If you find my article useful, please kindly like and share it.
