Skip to content

Support terraform outputs on template/workspace create #1311

Closed

Description

@bpmct

What is your suggestion?

Terraform has outputs, which can be used to share variables, outputs, and instructions after resources are created. In Coder, these outputs are not shown when a workspace is created.

Why do you want this feature?

Outputs can be used in Coder for a few interesting use cases:

  1. Templates can give developers additional instructions once a workspace is created
  2. Templates can give admins instructions to troubleshoot, such as link to with region + instance ID in AWS/EC2 dashboard (Get infrastructure link for each resource #1325)
  3. Servers can be manually provisioned and connected to Coder with a coder_token output
    • One-off mac mini servers, raspberry pis, homelab server, etc
  4. Share information about the resource created, as a confirmation or for a next step.

Current behavior

The hello workspace has been created!

Desired behavior

The hello workspace has been created!

Outputs:

coder_token = "0ea5efc9-a901-4d45-a228-a61196d49d1c"

The outputs is what happens when you do terraform apply

Are there any workarounds to get this functionality today?

Not really

Are you interested in submitting a PR for this?

Unfortunately, no :(

Activity

  1. tjcran commented on May 16, 2022

    @tjcran

    This is a really great UX suggestion! I don't think we have room in the launch milestone. Likely Post MVP

  2. added this to the Post-MVP milestone on May 16, 2022
  3. changed the title [-]Feat: support terraform outputs on template/workspace create[/-] [+]Support terraform outputs on template/workspace create[/+] on Jun 7, 2022
  4. bpmct commented on Jul 22, 2022

    @bpmct
    MemberAuthor

    #2989 addresses this

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions