---
title: AWS – You can now use Instance Scheduler to configure automatic start and stop of your EC2 instances - cubesys
description: As you know, running workloads on cloud services requires to implement cost management and optimization to not get nasty surprises with your consumption bills.One of the solution applicable to your virtual machines is to automatically start and stop them to match your business need.To start using AWS Instance Scheduler with…
---

[Latest News & Blogs - cubesys ](https://www.cubesys.com.au/blog)

# [AWS – You can now use Instance Scheduler to configure automatic start and stop of your EC2 instances - cubesys](https://www.cubesys.com.au/blog/aws-you-can-now-use-instance-scheduler-to-configure-automatic-start-and-stop-of-your-ec2-instances)

 Written by [cubesys](https://www.cubesys.com.au/blog/author/cubesys) | Oct 5, 2020 1:00:00 PM

As you know, running workloads on cloud services requires to implement cost management and optimization to not get nasty surprises with your consumption bills.

One of the solution applicable to your virtual machines is to automatically start and stop them to match your business need.

To start using AWS Instance Scheduler with your EC2 instances, get the templates for your CloudFormation:

- [instance-scheduler.template](https://s3.amazonaws.com/solutions-reference/aws-instance-scheduler/latest/instance-scheduler.template) to launch the Instance Scheduler and all associated components. The default configuration deploys an AWS Lambda function, an Amazon DynamoDB table, an Amazon CloudWatch event, and CloudWatch custom metrics, but you can also customize the template based on your needs
- [instance-scheduler-remote.template](https://s3.amazonaws.com/solutions-reference/aws-instance-scheduler/latest/instance-scheduler-remote.template) if you want to configure permissions for secondary accounts. The default configuration creates the AWS Identity and Access Management (IAM) roles necessary to start and stop instances in a secondary account.

Then connect to your AWS console ([https://console.aws.amazon.com/](https://console.aws.amazon.com/)) to access your CloudFormation stack.

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb-322.png>

Then create (or edit) a stack by either uploading your templates (from above links) or providing link to the S3 URL

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb1-264.png>

Then define the various stack parameters; you may have to update the **default time zone.**

The stack creation process will create few new resources, such as 2 new IAM roles (**SchedulerRole** and **instanceschedulerlambdaLambdaFunctionServiceRole<id>**), a new IAM policy (**EC2DynamoDBPolicy**) or a new DynamoDB table (**ConfigTable**).

Then you can edit the **Config** table of the DynamoDB database to edit the **period** and **schedule** items to match your requirements (starting time, timezone…)

<https://www.cubesys.com.au/hubfs/Imported_Blog_Media/image_thumb2-205.png>

Your CloudFormation stack is now ready to be used for resource deployment.

[View full post](https://www.cubesys.com.au/blog/aws-you-can-now-use-instance-scheduler-to-configure-automatic-start-and-stop-of-your-ec2-instances)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "cubesys"
  },
  "dateModified" : "2025-02-21T15:34:31.223Z",
  "datePublished" : "2020-10-05T13:00:00Z",
  "headline" : "AWS – You can now use Instance Scheduler to configure automatic start and stop of your EC2 instances",
  "image" : {
    "@type" : "ImageObject",
    "height" : 60,
    "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
    "width" : 60
  },
  "mainEntityOfPage" : "https://www.cubesys.com.au/blog/aws-you-can-now-use-instance-scheduler-to-configure-automatic-start-and-stop-of-your-ec2-instances",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Latest News"
  }
}
```