coder / coder/terraform-provider-coder

`coder_app` breaks when `command = "..."` and `subdomain = true`

Open
#343 5 comments 0 reactions 1 assignee Claimed by @jakehwll View on GitHub
good first issue
Dominant language
Go
Stars
60
Forks
27
Avg merge
1d 21h
Merged PRs (30d)
2

Description

Version: [`v0.27.1+65583ec`](https://github.com/coder/coder/commit/65583eca47f6d9d194ed8b038c3c010a4cd331c4)

If you create a `coder_app` like the following, you get a 500 error from Coder.

Either support for subdomains with commands should be added or the Terraform provider should complain that `subdomain = true` isn't allowed when `command` is set. When setting the `subdomain` key to `false` (or removing it entirely) things work fine (apart from the URL not being a subdomain).

```terraform
resource "coder_app" "keeper-commander" {
agent_id = coder_agent.main.id
slug = "keeper-commander"
display_name = "Keeper CLI"
icon = "https://www.keepersecurity.com/assets/branding/android-icon-192x192.png"
command = "keeper shell"
subdomain = true
share = "owner"
}
```

Screenshot 2023-07-26 at 6 18 37 PM

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.