Lab complete!
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool
With a sample environment deployed, we can now proceed to verify the default configuration available for the Instance Scheduler solution.
To configure the scheduler, you can use the scheduler-cli tool preinstalled into an EC2 instance in the sample environment named walab-admin-instance
. The admin instance in this lab is accessible using SSM Session Manager. In order to login to the walab-admin-instance instance follow the steps below:
Open the EC2 Console using below link:
Select the instance named walab-admin-instance, and click on the Connect button:
You have now logged in into the walab-admin-instance, without using SSH or a bastion, and you can configure the Instance Scheduler solution using the scheduler-cli
command line.
Execute below command to see the available options of the cli, including how to list the preinstalled schedules and time periods:
scheduler-cli -h
scheduler-cli describe-schedules --region us-east-1 --stack InstanceScheduler
scheduler-cli describe-periods --region us-east-1 --stack InstanceScheduler
The period “office-hours” highlighted above defines the period for which the instances associated with it should be running: From 9:00 AM to 5:00 PM, Monday to Friday.
Using this schedule for any “dev” (non-prod) instances will allow to save costs and reduce energy consumption by 76% as they will run only 24% of the time (8 hours per day * 5 days).
In other words, every week, instances that include the tag key/value “Schedule=seattle-office-hours” will run for 8*5=40 hours instead of 24*7=168 hours.
You have now completed this section of the lab.
In the next section we will explore how to use the AWS Resource Groups Tag Editor in combination with the Instance Scheduler solution for making sure our “dev” (non-prod) instances are shut-down outside of business hours.
Click on Next Step to continue with the next section.
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool