AWS EC2 Instance Running Schedule Stack
This is an AWS CDK Construct to make EC2 instance running schedule (only running while working hours(start/stop)).
Fixed
- EC2 Instance
Resources
This construct creating resource list.
- EventBridge Scheduler execution role
- EventBridge Scheduler
- Step Functions State machine
- Step Functions State machine role
Install
TypeScript
install by npm
npm install @gammarer/aws-ec2-instance-running-schedule-stack
install by yarn
yarn add @gammarer/aws-ec2-instance-running-schedule-stack
Python
pip install gammarer.aws-ec2-instance-running-schedule-stack
C# / .NET
dotnet add package Gammarer.CDK.AWS.Ec2InstanceRunningScheduler
Example
import { Ec2InstanceRunningScheduleStack } from '@gammarer/aws-ec2-instance-running-schedule-stack';
new EC2InstanceRunningScheduleStack(app, 'EC2InstanceRunningScheduleStack', {
targetResource: {
tagKey: 'WorkHoursRunning',
tagValues: ['YES'],
},
startSchedule: {
timezone: 'Asia/Tokyo',
minute: '55',
hour: '8',
week: 'MON-FRI',
},
stopSchedule: {
timezone: 'Asia/Tokyo',
minute: '5',
hour: '19',
week: 'MON-FRI',
},
});
License
This project is licensed under the Apache-2.0 License.
Metadata
Release files for gammarer.aws-ec2-instance-running-scheduler 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gammarer_aws_ec2_instance_running_scheduler-2.0.0.tar.gz | 45.2 kB | Without provenance | Details for gammarer_aws_ec2_instance_running_scheduler-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gammarer.aws_ec2_instance_running_scheduler-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for gammarer.aws_ec2_instance_running_scheduler-2.0.0-py3-none-any.whl |
Total release size: 89.3 kB
Release files / gammarer_aws_ec2_instance_running_scheduler-2.0.0.tar.gz
| Download URL | gammarer_aws_ec2_instance_running_scheduler-2.0.0.tar.gz |
|---|---|
| Size | 45.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d6b3569958016e6f4e3d10207c4d96c9961cec4c59452af6b78fc20d24f2d3d
|
|
BLAKE2b-256 checksum How to use checksums |
f63adf36059ebe188281059258f0099aeed10762d870c47642d2cbf840087ccb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / gammarer.aws_ec2_instance_running_scheduler-2.0.0-py3-none-any.whl
| Download URL | gammarer.aws_ec2_instance_running_scheduler-2.0.0-py3-none-any.whl |
|---|---|
| Size | 44.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e834088647cf56ace8b9b2b3d654315ac21a1d5b1d0bced85305cf09f1e1fa8
|
|
BLAKE2b-256 checksum How to use checksums |
656df7e95dcf1281ed0206c11b4abf10d62aa67569d10345a1590e2764a3695f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for gammarer.aws-ec2-instance-running-scheduler 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.