Skip to content

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

@MaximeNoulin

Description

@MaximeNoulin

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions