Skip to content

Add license management capability to coderd provider #5

Closed
Listed in
@johnstcn

Description

@johnstcn

Should allow adding / removing licenses, e.g.:

resource "coderd_license" "license" {
  license = kubernetes_secret.license.data["license.json"]
}

Activity

modified the milestones: MVP, Post-MVP on Jun 7, 2024
ethanndickson

ethanndickson commented on Sep 3, 2024

@ethanndickson
Member

Terraform doesn't provide us, as provider developers, with a way to require that a specific resource type be created before others. This makes the UX of a license resource kind of awkward - you'd have to apply it before the rest of your config, if any part of that config wants to use enterprise/premium features.

One nicer way to implement it would be making it an optional attribute on the provider itself. I suspect this is what we'll end up going with.

EDIT: I changed my mind on this - Terraform has the depends_on meta-argument for a reason, whilst you might run into trouble if you forget to include it, needing to use depends_on shouldn't be surprising for anyone familiar with Terraform.

added a commit that references this issue on Nov 7, 2024
a462665
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @johnstcn@matifali@ethanndickson

      Issue actions

        Add license management capability to coderd provider · Issue #5 · coder/terraform-provider-coderd