From the course: AWS Lambda Projects: Serverless Functions, Cost-Efficiency, and Peak Performance in Cloud Environments
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Lambda integration with IAM, EC2, and CloudWatch - Amazon Web Services (AWS) Tutorial
From the course: AWS Lambda Projects: Serverless Functions, Cost-Efficiency, and Peak Performance in Cloud Environments
Lambda integration with IAM, EC2, and CloudWatch
- In this lesson, we're going to create a Lambda function that takes snapshots of EC2 instances. And in order for Lambda to take snapshots of EC2, it has to have the necessary permissions. So we're going to start by creating an IAM policy that will allow Lambda to work on these EC2 instances. And then we'll create a Lambda function to take snapshots of these instances and we'll apply the IAM policy to it. We'll also provide the code for that Lambda function and then we'll deploy it and we'll schedule the Lambda function to run on a regular basis. So before we can start taking snapshots of EC2 instances, we need some EC2 instances to work with. So let's create an EC2 instance. And as you can see, I'm logged into the AWS console. I'm at the home screen and I'm in the North Virginia region. Now, one other thing I just want to mention, this lesson requires you to use the Associated Lab manual. Those are available as PDFs within this course, and we're going to have to get some information…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.