diff --git a/docs/resources/space.md b/docs/resources/space.md index 40e63722..5301e7d2 100644 --- a/docs/resources/space.md +++ b/docs/resources/space.md @@ -4,12 +4,15 @@ page_title: "spacelift_space Resource - terraform-provider-spacelift" subcategory: "" description: |- spacelift_space represents a Spacelift space - a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space. + Please note: the spacelift_space resource requires root Admin permissions, and can only be used by administrative stacks in the root space, or using an API key or user session that has root space access. --- # spacelift_space (Resource) `spacelift_space` represents a Spacelift **space** - a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space. +**Please note:** the `spacelift_space` resource requires root Admin permissions, and can only be used by administrative stacks in the root space, or using an API key or user session that has root space access. + ## Example Usage ```terraform diff --git a/spacelift/resource_space.go b/spacelift/resource_space.go index 669d1caf..b35e1054 100644 --- a/spacelift/resource_space.go +++ b/spacelift/resource_space.go @@ -17,7 +17,9 @@ import ( func resourceSpace() *schema.Resource { return &schema.Resource{ Description: "`spacelift_space` represents a Spacelift **space** - " + - "a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space.", + "a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space.\n\n" + + "**Please note:** the `spacelift_space` resource requires root Admin permissions, and can only be used by administrative stacks " + + "in the root space, or using an API key or user session that has root space access.", CreateContext: resourceSpaceCreate, ReadContext: resourceSpaceRead,