{"id":19657893,"url":"https://github.com/gammarers/aws-rds-database-auto-running-protection-stack","last_synced_at":"2026-03-12T05:02:18.264Z","repository":{"id":190251224,"uuid":"681494352","full_name":"gammarers/aws-rds-database-auto-running-protection-stack","owner":"gammarers","description":"This constructor stack includes a function to automatically stop a database or cluster that will automatically start in 7 days.","archived":false,"fork":false,"pushed_at":"2025-07-04T13:28:08.000Z","size":1781,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T14:07:45.424Z","etag":null,"topics":["auto","aws","aws-cdk","cdk","rds","stop"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gammarers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-22T06:25:17.000Z","updated_at":"2025-07-04T13:24:27.000Z","dependencies_parsed_at":"2023-10-12T01:36:39.692Z","dependency_job_id":"1104a114-41d7-4929-a6c7-2cde4e1e3a1a","html_url":"https://github.com/gammarers/aws-rds-database-auto-running-protection-stack","commit_stats":null,"previous_names":["yicr/aws-rds-database-auto-running-stopper","gammarer/aws-rds-database-auto-running-stopper","gammarers/aws-rds-database-auto-running-stopper","gammarers/aws-rds-database-auto-running-stop-stack","gammarers/aws-rds-database-auto-running-protection-stack"],"tags_count":219,"template":false,"template_full_name":null,"purl":"pkg:github/gammarers/aws-rds-database-auto-running-protection-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-rds-database-auto-running-protection-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-rds-database-auto-running-protection-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-rds-database-auto-running-protection-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-rds-database-auto-running-protection-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gammarers","download_url":"https://codeload.github.com/gammarers/aws-rds-database-auto-running-protection-stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammarers%2Faws-rds-database-auto-running-protection-stack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265191295,"owners_count":23725293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto","aws","aws-cdk","cdk","rds","stop"],"created_at":"2024-11-11T15:34:49.788Z","updated_at":"2025-12-28T11:15:56.380Z","avatar_url":"https://github.com/gammarers.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS RDS Database Auto Running Protection Stack\n\n[![GitHub](https://img.shields.io/github/license/gammarers/aws-rds-database-auto-running-protection-stack?style=flat-square)](https://github.com/gammarers/aws-rds-database-auto-running-protection-stack/blob/main/LICENSE)\n[![npm (scoped)](https://img.shields.io/npm/v/@gammarers/aws-rds-database-auto-running-protection-stack?style=flat-square)](https://www.npmjs.com/package/@gammarers/aws-rds-database-auto-running-protection-stack)\n[![PyPI](https://img.shields.io/pypi/v/gammarers.aws-rds-database-auto-running-protection-stack?style=flat-square)](https://pypi.org/project/gammarers.aws-rds-database-auto-running-protection-stack/)\n[![Nuget](https://img.shields.io/nuget/v/Gammarers.CDK.AWS.RDSDatabaseAutoRunningProtectionStack?style=flat-square)](https://www.nuget.org/packages/Gammarers.CDK.AWS.RDSDatabaseAutoRunningProtectionStack/)\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/gammarers/aws-rds-database-auto-running-protection-stack/release.yml?branch=main\u0026label=release\u0026style=flat-square)](https://github.com/gammarers/aws-rds-database-auto-running-protection-stack/actions/workflows/release.yml)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/gammarers/aws-rds-database-auto-running-protection-stack?sort=semver\u0026style=flat-square)](https://github.com/gammarers/aws-rds-database-auto-running-protection-stack/releases)\n\n[![View on Construct Hub](https://constructs.dev/badge?package=@gammarers/aws-rds-database-auto-running-protection-stack)](https://constructs.dev/packages/@gammarers/aws-rds-database-auto-running-protection-stack)\n\nThis constructor stack includes a function to automatically stop a database or cluster that will automatically start in 7 days.\n\n\u003e [!WARNING]\n\u003e v2.1.0:\n\u003e Stack props add option resourceNamingOption\n\u003e default ResourceNamingType.DEFAULT is cdk generated name\n\u003e if you want to maintain compatibility with versions below `v2.1.0`, please include the following settings (ResourceNamingType.AUTO).\n\u003e ```typescript\n\u003e new RDSDatabaseAutoRunningProtectionStack(app, 'RDSDatabaseAutoRunningProtectionStack', {\n\u003e   stackName: 'rds-database-auto-running-protection-stack',\n\u003e   targetResource: {\n\u003e     tagKey: 'AutoRunningProtection',\n\u003e     tagValues: ['YES'],\n\u003e   },\n\u003e   resourceNamingOption: {\n\u003e     type: RDSDatabaseAutoRunningProtectionStackResourceNamingType.AUTO, // HERE\n\u003e   },\n\u003e });\n\u003e ```\n\n## Resources\n\nThis construct creating resource list.\n\n- StepFunctions(StateMachine)\n- IAM Role (StepFunctions)\n- IAM Policy (StepFunctions)\n- EventBridge\n- IAM Role (EventBridge)\n\n## Install\n\n### TypeScript\n\n#### install by npm\n\n```shell\nnpm install @gammarers/aws-rds-database-auto-running-protection-stack\n```\n\n#### install by yarn\n\n```shell\nyarn add @gammarers/aws-rds-database-auto-running-protection-stack\n```\n\n#### install by pnpm\n\n```shell\npnpm add @gammarers/aws-rds-database-auto-running-protection-stack\n```\n\n#### install by bun\n\n```shell\nbun add @gammarers/aws-rds-database-auto-running-protection-stack\n```\n\n### Python\n\n```shell\npip install gammarers.aws-rds-database-auto-running-protection-stack\n```\n\n### C# / .NET\n\n```shell\ndotnet add package Gammarers.CDK.AWS.RDSDatabaseAutoRunningProtectionStack\n```\n\n## Example\n\n### Code\n\n```typescript\nimport { RDSDatabaseAutoRunningProtectionStack } from '@gammarers/aws-rds-database-auto-running-protection-stack';\n\nnew RDSDatabaseAutoRunningProtectionStack(app, 'RDSDatabaseAutoRunningProtectionStack', {\n  stackName: 'rds-database-auto-running-protection-stack',\n  targetResource: {\n    tagKey: 'AutoRunningProtection',\n    tagValues: ['YES'],\n  },\n  resourceNamingOption: {\n    type: RDSDatabaseAutoRunningProtectionStackResourceNamingType.DEFAULT,\n  },\n  notifications: {\n    emails: [ // \"Incoming Sample Message - EMAIL\"\n      'foo@example.com',\n      'bar@example.net',\n    ],\n    slack: { // \"Incoming Sample Message - Slack\"\n      webhookSecretName: 'example/slack/webhook', // Slack webhook secret\n    },\n  },\n});\n```\n\n### Slack webhook secret\n\nPlease save it in AWS Secrets Manager in the following format.\n\nget your slack webhook url parts\n\n```text\nhttps://hooks.slack.com/services/\u003cworkspace\u003e/\u003cchannel\u003e/\u003cwhebook\u003e\n```\n\n| SecretKey \t | SecretValue \t   |\n|-------------|-----------------|\n| Workspace \t | \\\u003cworkspace\\\u003e \t |\n| Channel   \t | \\\u003cchannel\\\u003e   \t |\n| Webhook   \t | \\\u003cwhebook\\\u003e   \t |\n\n## Incoming Sample Message\n\n### EMAIL\n\n![](./images/example-email.png)\n\n### Slack\n\n![](./images/example-slack.png)\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammarers%2Faws-rds-database-auto-running-protection-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgammarers%2Faws-rds-database-auto-running-protection-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammarers%2Faws-rds-database-auto-running-protection-stack/lists"}