coder / terraform-provider-coderd

Manage a Coder deployment using Terraform
https://registry.terraform.io/providers/coder/coderd/latest/docs
Mozilla Public License 2.0
10 stars 2 forks source link

Support setting max port sharing level in template resource #108

Closed stirby closed 1 month ago

stirby commented 1 month ago

We should allow users to configure the maximum port sharing level in the template resource, as we do in the settings UI.

https://coder.com/docs/networking/port-forwarding#configure-maximum-port-sharing-level-enterprise

stirby commented 1 month ago

cc @ethanndickson

ethanndickson commented 1 month ago

The setting was previously missing from the Create request, which I added here: https://github.com/coder/coder/pull/14366. If customers are actually looking to set this via the provider, I can add it in a backwards compatible way (i.e. that doesn't require >=2.15.0) by sending a second PATCH request during resource creation if the attribute is configured.

ethanndickson commented 1 month ago

Closed by #110.