Managing Amazon EC2 Instances with Systems Manager Automation

Managing Amazon EC2 Instances with Systems Manager Automation
Managing Amazon EC2 Instances with Systems Manager Automation

CLOUD LABS

Managing Amazon EC2 Instances with Systems Manager Automation

In this Cloud Lab, you’ll learn how to launch EC2 instances using Systems Manager Automation. Additionally, you’ll learn how to create Config rules and add System Manager documents as remediation actions.

9 Tasks

beginner

2hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of AWS System Manager Automation
Hands-on experience creating Automation runbooks to launch EC2 instances
The ability to create custom Config rules to detect resources in the public subnet
Working knowledge of Automation documents as remediation action for noncompliant resources

Technologies
AWS logoAWS
Systems Manager
VPC logoVPC
Lambda logoLambda
Config
EC2 logoEC2
Cloud Lab Overview

AWS Systems Manager Automation enables users to maintain and deploy AWS resources using simple scripts. These scripts specify the steps to be executed in response to an event or through manual intervention. AWS Systems Manager allows you to define your Automation runbooks or execute the existing automation documents for some common tasks.

In this Cloud Lab, you’ll learn how to use System Manager Automation to manage EC2 instances in an environment. You’ll start deploying a VPC with a public and private subnet. You’ll also create a security group and IAM role for your EC2 instance. Then, you’ll create an Automation runbook to launch EC2 instances in the private subnet with the required software packages. Moving on, you’ll create a custom AWS Config rule to detect EC2 instances in a public subnet. You’ll add a System Manager Automation document to this task to automate terminating the instance in the public subnet.

The infrastructure diagram below shows the provisioned infrastructure that you’ll build in this Cloud Lab:

Architecture diagram
Architecture diagram

Cloud Lab Tasks
1.Introduction
Getting Started
2.Launch EC2 Instances
Launch VPC and Subnets
Create an IAM Role and a Security Group
Create an Automation Runbook
3.Terminate Noncompliant Resources
Create a Lambda Function
Create a Custom Config Rule
Test the Custom Config Rule
4.Conclusion
Clean Up
Wrap up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image