[](https://github.com/yicr/aws-rds-database-running-scheduler/blob/main/LICENSE)
[](https://www.npmjs.com/package/@gammarer/aws-rds-database-running-scheduler)
[](https://pypi.org/project/gammarer.aws-rds-database-running-scheduler/)
[](https://www.nuget.org/packages/Gammarer.CDK.AWS.RdsDatabaseRunningScheduler/)
[](https://s01.oss.sonatype.org/content/repositories/releases/com/gammarer/aws-rds-database-running-scheduler/)
[](https://github.com/yicr/aws-rds-database-running-scheduler/actions/workflows/release.yml)
[](https://github.com/yicr/aws-rds-database-running-scheduler/releases)
# AWS RDS Database Running Scheduler
This is an AWS CDK Construct to make RDS Database running schedule (only running while working hours(start/stop)).
## Fixed
* RDS Aurora Cluster
* RDS Instance
## Resources
This construct creating resource list.
* EventBridge Scheduler execution role
* EventBridge Scheduler
## Install
### TypeScript
```shell
npm install @gammarer/aws-rds-database-running-scheduler
# or
yarn add @gammarer/aws-rds-database-running-scheduler
```
### Python
```shell
pip install gammarer.aws-rds-database-running-scheduler
```
### C# / .NET
```shell
dotnet add package Gammarer.CDK.AWS.RdsDatabaseRunningScheduler
```
### Java
Add the following to pom.xml:
```xml
<dependency>
<groupId>com.gammarer</groupId>
<artifactId>aws-rds-database-running-scheduler</artifactId>
</dependency>
```
## Example
```python
import { RdsDatabaseRunningScheduler, DatabaseType } from '@gammarer/aws-rds-database-running-scheduler';
new RdsDatabaseRunningScheduler(stack, 'RdsDatabaseRunningScheduler', {
targets: [
{
type: DatabaseType.CLUSTER,
identifiers: ['db-cluster-1a'],
startSchedule: {
timezone: 'UTC',
},
stopSchedule: {
timezone: 'UTC',
},
},
{
type: DatabaseType.INSTANCE,
identifiers: ['db-instance-1a'],
startSchedule: {
timezone: 'UTC',
},
stopSchedule: {
timezone: 'UTC',
},
},
],
});)
```
## License
This project is licensed under the Apache-2.0 License.
Raw data
{
"_id": null,
"home_page": "https://github.com/gammarer/aws-rds-database-running-scheduler.git",
"name": "gammarer.aws-rds-database-running-scheduler",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.8",
"maintainer_email": null,
"keywords": null,
"author": "yicr<yicr@users.noreply.github.com>",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/3d/b5/14693a359c2a618ac92b8284cd44782ca3696c0d1f9929ebb04bcf684119/gammarer.aws-rds-database-running-scheduler-1.1.16.tar.gz",
"platform": null,
"description": "[](https://github.com/yicr/aws-rds-database-running-scheduler/blob/main/LICENSE)\n[](https://www.npmjs.com/package/@gammarer/aws-rds-database-running-scheduler)\n[](https://pypi.org/project/gammarer.aws-rds-database-running-scheduler/)\n[](https://www.nuget.org/packages/Gammarer.CDK.AWS.RdsDatabaseRunningScheduler/)\n[](https://s01.oss.sonatype.org/content/repositories/releases/com/gammarer/aws-rds-database-running-scheduler/)\n[](https://github.com/yicr/aws-rds-database-running-scheduler/actions/workflows/release.yml)\n[](https://github.com/yicr/aws-rds-database-running-scheduler/releases)\n\n# AWS RDS Database Running Scheduler\n\nThis is an AWS CDK Construct to make RDS Database running schedule (only running while working hours(start/stop)).\n\n## Fixed\n\n* RDS Aurora Cluster\n* RDS Instance\n\n## Resources\n\nThis construct creating resource list.\n\n* EventBridge Scheduler execution role\n* EventBridge Scheduler\n\n## Install\n\n### TypeScript\n\n```shell\nnpm install @gammarer/aws-rds-database-running-scheduler\n# or\nyarn add @gammarer/aws-rds-database-running-scheduler\n```\n\n### Python\n\n```shell\npip install gammarer.aws-rds-database-running-scheduler\n```\n\n### C# / .NET\n\n```shell\ndotnet add package Gammarer.CDK.AWS.RdsDatabaseRunningScheduler\n```\n\n### Java\n\nAdd the following to pom.xml:\n\n```xml\n<dependency>\n <groupId>com.gammarer</groupId>\n <artifactId>aws-rds-database-running-scheduler</artifactId>\n</dependency>\n```\n\n## Example\n\n```python\nimport { RdsDatabaseRunningScheduler, DatabaseType } from '@gammarer/aws-rds-database-running-scheduler';\n\nnew RdsDatabaseRunningScheduler(stack, 'RdsDatabaseRunningScheduler', {\n targets: [\n {\n type: DatabaseType.CLUSTER,\n identifiers: ['db-cluster-1a'],\n startSchedule: {\n timezone: 'UTC',\n },\n stopSchedule: {\n timezone: 'UTC',\n },\n },\n {\n type: DatabaseType.INSTANCE,\n identifiers: ['db-instance-1a'],\n startSchedule: {\n timezone: 'UTC',\n },\n stopSchedule: {\n timezone: 'UTC',\n },\n },\n ],\n});)\n```\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "AWS RDS Database Running Scheduler",
"version": "1.1.16",
"project_urls": {
"Homepage": "https://github.com/gammarer/aws-rds-database-running-scheduler.git",
"Source": "https://github.com/gammarer/aws-rds-database-running-scheduler.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d112edf6464f37de453d57a21645f911c27c27158b43b08671bbf845253c90fe",
"md5": "909becb77d6d533bbafad4ab65ed7801",
"sha256": "270c16ab9a96e0b9ee0ba2397772d87e4cfa2b0d0f878b1191f7b86cc323df67"
},
"downloads": -1,
"filename": "gammarer.aws_rds_database_running_scheduler-1.1.16-py3-none-any.whl",
"has_sig": false,
"md5_digest": "909becb77d6d533bbafad4ab65ed7801",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 33799,
"upload_time": "2024-05-01T16:21:06",
"upload_time_iso_8601": "2024-05-01T16:21:06.983008Z",
"url": "https://files.pythonhosted.org/packages/d1/12/edf6464f37de453d57a21645f911c27c27158b43b08671bbf845253c90fe/gammarer.aws_rds_database_running_scheduler-1.1.16-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3db514693a359c2a618ac92b8284cd44782ca3696c0d1f9929ebb04bcf684119",
"md5": "f0c21b96f7e9625a3bd02afcd3f64cd9",
"sha256": "27d45d1987b3065811840a427bf58e1cae54be0b3f7e0ed3a1295b6276e0e38c"
},
"downloads": -1,
"filename": "gammarer.aws-rds-database-running-scheduler-1.1.16.tar.gz",
"has_sig": false,
"md5_digest": "f0c21b96f7e9625a3bd02afcd3f64cd9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 34820,
"upload_time": "2024-05-01T16:21:09",
"upload_time_iso_8601": "2024-05-01T16:21:09.175504Z",
"url": "https://files.pythonhosted.org/packages/3d/b5/14693a359c2a618ac92b8284cd44782ca3696c0d1f9929ebb04bcf684119/gammarer.aws-rds-database-running-scheduler-1.1.16.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-01 16:21:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gammarer",
"github_project": "aws-rds-database-running-scheduler",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "gammarer.aws-rds-database-running-scheduler"
}