DEV Community

PREETHIKA J
PREETHIKA J

Posted on

Day 1 : Session 2 : EC2, S3, Serverless Computing and Event Triggers published

Continuing the cloud workshop recap — here's what we covered in Session 2!

Session 2: EC2, S3, Serverless Computing and Event Triggers

We continued building on our EC2 knowledge from Session 1, this time focusing on how EC2 and S3 work together, and how to run code without managing servers at all.

EC2 + AWS CLI

We opened the EC2 directory through Git Bash and connected to the instance using SSH. From there, we worked with AWS CLI commands and checked the installed CLI version.

IAM Roles

We learned about IAM (Identity and Access Management) roles and created one as part of a hands-on activity — understanding how roles grant permissions to AWS services without hardcoding credentials.

Transferring Data: Kaggle → EC2 → S3

As a practical exercise, we:

  • Downloaded a Kaggle dataset directly into the EC2 instance
  • Transferred the dataset from EC2 to an S3 bucket

This helped tie together compute (EC2), storage (S3), and CLI usage into one workflow.

Serverless Computing with AWS Lambda

Next, we were introduced to serverless computing using AWS Lambda.

  • Created a Lambda function
  • Understood how Lambda executes code without needing to provision or manage servers

S3 Event Triggers

We then set up an S3 event trigger:

  • When a file is uploaded to the S3 bucket, it automatically triggers the Lambda function
  • This demonstrated event-driven architecture in action

Finally, we checked the trigger and execution details using CloudWatch Logs to verify everything ran as expected.



That's a wrap on Session 2!

Top comments (0)