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

feat: Add metadata about the current_build / latest_build of a workspace #294

Open
MaximeNoulin opened this issue Oct 3, 2024 · 0 comments

Comments

@MaximeNoulin
Copy link

MaximeNoulin commented Oct 3, 2024

The idea would be to have metadata about the current_build in the coder_workspace datasource ( https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/workspace)

The available metadata that could be implemented: https://coder.com/docs/reference/api/workspaces

About my usecase: I would be particularly interested in the current "build_number". I'm using an ephemeral parameter to trigger an action that should only be executed once. As I didn't integrate an ID of the build as a check, in case the dependent resources are restarted, the action is triggered an other time.

If the current "build_number" would be accessible, this could allow an easy access to a single ID of the build, therefore that can be used for instance to trigger some actions only one time "per build".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants