How to hide a coder_app
resource?
#11349
-
I want to build a template where a user can choose whether or not they want if "${data.coder_parameter.code_server.value}"
then
# install and start code-server
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &
fi The issue is that there is no way to render the associated Adding a boolean |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Good feature! Thanks :) |
Beta Was this translation helpful? Give feedback.
-
We use count in Terraform to enable/disable a coder_app resource. But we know at provision time if a coder_app is enabled or not. This should work in your case as you already know if the developer wants a coder instance.
|
Beta Was this translation helpful? Give feedback.
-
Oh that's perfect! I should have tried that first thanks. Everything works as expected with this solution so I will close this issue |
Beta Was this translation helpful? Give feedback.
-
Cool stuff here. I made a template with true false to install Coder's code-server And another template if Microsoft or Coder's code-server is needed |
Beta Was this translation helpful? Give feedback.
We use count in Terraform to enable/disable a coder_app resource. But we know at provision time if a coder_app is enabled or not.
This should work in your case as you already know if the developer wants a coder instance.