Skip to main content

CLI utility to create AWS Scheduled Actions using instance tags or autoscaling id via a config file

Project description

Configures AWS Scheduled Scaling for Amazon EC2 Auto Scaling based on Tags.

You can Tag your EC2 instances and define in a config file the scaling profiles. The rest is magic…


$ pip install sked


sked create [-c=<config_file>]
sked delete [-c=<config_file>]
sked -h | --help
sked --version


sked create -c my_schedule.yml
sked delete -c my_schedule.yml

If you omit the -c parameter, the cli by default tries to use a file called sked.yml.

Configuration file sample

# sked.yml
    desired_capacity: 5
    min_size: 1
    max_size: 10
    recurrence: 0 7 * * * # every day at 07:00
    desired_capacity: 0
    min_size: 0
    recurrence: 15 19 * * MON-FRI # 19:15 from Monday to Friday

  - filter:
        key: Name
        value: SomeTag
      - profile: small
          - start_time: 2018-03-01T00:00:00Z
          - start_time: 2018-04-01T00:00:00Z
  - filter:
        - tag: {key: Name, value: MyInstanceA}
        - tag: {key: Name, value: 'My Instance B'}
      - profile: small
          - start_time: 2018-03-01T00:00:00Z
          - start_time: 2018-04-01T00:00:00Z

Additional Note

Sked doesn’t store the state of the applied scheduled action. Everything is based upon the Yaml configuration file.

If you want to use the delete command make sure you didn’t change the Yaml configuration file in the meantime.

For instance, the following workflow will produce an error:

  1. run sked create

  2. change the sked.yml file

  3. run sked delete

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

sked-1.0.0-py2.py3-none-any.whl (7.9 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page