- Notifications
You must be signed in to change notification settings - Fork22
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 ourterms of service andprivacy 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
Uh oh!
There was an error while loading.Please reload this page.
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 |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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 👍🏻
Uh oh!
There was an error while loading.Please reload this page.
…fter_secs to prevent stale prebuilds
… validation ttl value to 1 year
As discussedinternally, 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! 👍🏻
28dae7f
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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: