Lambda Function to Shut Down and Terminate an EC2 Instance

Lab Details:

  1. This lab walks you through shutting down and terminating EC2 instances using AWS Lambda. In this lab, we will create a sample lambda function. This lambda function when triggered will shut down and terminate an EC2 Instance.

  2. Duration: 30 minutes

  3. AWS Region: US East (N. Virginia)

Tasks

  1. Log into the AWS Management Console.

  2. Create two EC2 instances.

  3. Create an IAM Role.

  4. Create a lambda function.

  5. Configure a test event.

  6. Trigger the lambda function manually using the test event.

  7. View the instance getting shut down in the AWS management console.

Architecture Diagram



Join Whizlabs_Hands-On to Read the Rest of this Lab..and More!

Step 1 : Login to My-Account
Step 2 : Click on "Access Now" to view the course you have purchased
Step 3 : You will be taken to our Learn Management Solution (LMS) to access your Labs,Quiz and Video courses