Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler: Option to delete schedules after completion. #27455

Open
2 tasks
RamonBalthazar opened this issue Oct 9, 2023 · 1 comment
Open
2 tasks

Scheduler: Option to delete schedules after completion. #27455

RamonBalthazar opened this issue Oct 9, 2023 · 1 comment
Labels
@aws-cdk/aws-scheduler Related to the AWS Scheduler service effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p2

Comments

@RamonBalthazar
Copy link

RamonBalthazar commented Oct 9, 2023

Describe the feature

Add a property to the createSchedule and updateSchedule functions that allows for schedules to be deleted after completion.

This is already an option through the web console and the CLI [AWS docs]

Use Case

Our Scheduler quota is being consumed by a lot of schedules that only trigger once but then hang around. We had to build something that deletes these schedules after they've completed which is extra infrastructure to maintain.

Proposed Solution

In the CreateScheduleInput and UpdateScheduleInput objects:

  • Add an ActionAfterCompletion property with value 'DELETE' | 'NONE'

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.100.0

Environment details (OS name and version, etc.)

Node 18

@RamonBalthazar RamonBalthazar added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Oct 9, 2023
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Oct 9, 2023
@pahud
Copy link
Contributor

pahud commented Oct 9, 2023

According to this tweet I doubt it would not be supported in cloudformation. We still can implement this in CDK but this will require a custom resource for that.

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Oct 9, 2023
@vinayak-kukreja vinayak-kukreja added @aws-cdk/aws-scheduler Related to the AWS Scheduler service and removed package/tools Related to AWS CDK Tools or CLI labels Apr 12, 2024
@samson-keung samson-keung added the needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-scheduler Related to the AWS Scheduler service effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p2
Projects
None yet
Development

No branches or pull requests

4 participants