Skip to content

Commit 6b8b915

Browse files
committed
woot
1 parent 38ada64 commit 6b8b915

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/index.md

-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,5 @@ resource "coderd_template" "example" {
8484

8585
### Optional
8686

87-
- `default_organization_id` (String) Default organization ID to use when creating resources. Defaults to the first organization the token has access to.
8887
- `token` (String) API token for communicating with the deployment. Most resource types require elevated permissions. Defaults to `$CODER_SESSION_TOKEN`.
8988
- `url` (String) URL to the Coder deployment. Defaults to `$CODER_URL`.

docs/resources/template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ resource "coderd_template" "ubuntu-main" {
7979
- `failure_ttl_ms` (Number) (Enterprise) The max lifetime before Coder stops all resources for failed workspaces created from this template, in milliseconds.
8080
- `icon` (String) Relative path or external URL that specifes an icon to be displayed in the dashboard.
8181
- `max_port_share_level` (String) (Enterprise) The maximum port share level for workspaces created from this template. Defaults to `owner` on an Enterprise deployment, or `public` otherwise.
82-
- `organization_id` (String) The ID of the organization. Defaults to the provider's default organization
82+
- `organization_id` (String) The ID of the organization that this template belongs to.
8383
- `require_active_version` (Boolean) (Enterprise) Whether workspaces must be created from the active version of this template. Defaults to false.
8484
- `time_til_dormant_autodelete_ms` (Number) (Enterprise) The max lifetime before Coder permanently deletes dormant workspaces created from this template.
8585
- `time_til_dormant_ms` (Number) (Enterprise) The max lifetime before Coder locks inactive workspaces created from this template, in milliseconds.

internal/provider/template_resource.go

+2
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ func (r *TemplateResource) Schema(ctx context.Context, req resource.SchemaReques
278278
},
279279
"organization_id": schema.StringAttribute{
280280
MarkdownDescription: "The ID of the organization that this template belongs to.",
281+
Computed: true,
282+
Optional: true,
281283
CustomType: UUIDType,
282284
PlanModifiers: []planmodifier.String{
283285
stringplanmodifier.RequiresReplaceIfConfigured(),

0 commit comments

Comments
 (0)