Create Schedules

Overview

In OneLens, you can create Schedules to automate routine resource management tasks and avoid unnecessary manual effort. Each OneLens schedule allows you to specify:

  • Which service and resources the schedule applies to

  • What action should be performed (start, stop, or scale)

  • When and how often the action should run (daily, weekly, or monthly)

Once you understand the value of schedules, the next step is to learn how to set one up inside OneLens.

Steps to Create

Here’s how you can create a schedule in OneLens:

1

Head to Schedulers

  • Log in to the OneLens UI.

  • From the right sidebar, click Schedulers.

Note

2

Create a New Schedule

  • Click on Create New Schedule in the top-right corner.

A form appears where you define the schedule name, frequency, and the set of rules (expressions) that determine which resources the schedule applies to.

3

Enter General Details

Give your schedule its basic identity:

  • Schedule Name – Name your schedule so you can easily identify it later.

  • Schedule Service – Select the AWS service you want to automate (EC2, RDS, or ASG).

  • Description – Add a short description to explain the purpose of your schedule.

4

Choose Target Scope

You decide which resources the schedule applies to by:

a) Using Expression-Based Rules

  • Add rules by choosing a field, an operator, and a value.

    • Available Fields: Account, Region, Tags.

  • Combine multiple rules with valid operators.

  • Valid operators: AND, (, ).

Business Usecase

b) Using Resource ID

  • Click Add Resource and enter the ARN of a resource, or

  • Upload a CSV file with multiple ARNs.

5

Add Schedule Actions

Once the schedule is created, you can define what action should take place:

  1. Click on Add Action.

  2. A configuration box appears where you need to define:

  • Action Type

    • The available action types vary depending on the service:

      • EC2 → Start or Stop Instance

      • RDS → Start or Stop Resource

      • Auto Scaling Group (ASG) → Modify Resource

Important

  • Action Recurrence

    • Define how often the action should run:

      • Daily → Choose excluded days

      • Weekly → Select the day(s) of the week

      • Monthly → Select the day of the month

  • Time of the Day (UTC)

    • Set the exact hour and minute when the action should be executed.

  • Click on Add Action.

Note

You can add multiple actions under a single schedule. However, ensure that the timing of each action does not collide, as overlapping schedules may cause conflicts in resource management.

Business Usecase

6

Save the Schedule

  • Once you’ve entered all details, click Create Schedule.

  • Your schedule is now active, and OneLens will execute it exactly as you defined.

After you’ve created schedules, head to your Schedulers Dashboard to monitor and manage them in one place.

Last updated