-
Notifications
You must be signed in to change notification settings - Fork 22
feat: add expiration_policy parameter to prebuild resource #404
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
feat: add expiration_policy parameter to prebuild resource #404
Conversation
Looks good. I'd just like to revisit the schema:
Do we need the nested
|
I also thought about that, the nested One other concern I had was about the naming of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the naming/use of block, this seems good to me 👍🏻
…fter_secs to prevent stale prebuilds
… validation ttl value to 1 year
As discussed internally, and after getting the confirmation that we'll likely introduce more expiration-related parameters in the future, the terraform schema was updated to:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and docs and test coverage seems on point, nice work! 👍🏻
Summary
This PR adds Terraform support for configuring a
expiration_policy
field in a template preset. This allows users to specify a TTL (ttl
) for prebuild workspaces, after which they are considered expired and eligible for deletion and replacement.Changes
expiration_policy
block.Example Usage
Related: