Troubleshooting Issues with Creating Resources in Another Space
Last updated: November 10, 2024
Overview
If you encounter issues while creating resources in a different space within Spacelift, certain settings and configurations need to be checked. This guide outlines common requirements and troubleshooting steps.
Error message: unauthorized - is it an administrative stack in the appropriate space?
Checklist for Creating Resources in Another Space
Ensure the Stack is Marked as Administrative
For the stack to create resources in other spaces, it must have administrative privileges.
To enable this in the UI, navigate to Stack Settings > Behavior and toggle on Administrative.
If using the Terraform provider, set the
administrativefield totrue. Refer to the Terraform provider documentation here.
Verify Access to the Target Space
The creator stack must be able to access the target space. Ensure that it is creating resources in the same space or in a child space of the current space.
Provide the Correct Space ID
When specifying the target space, use the space ID rather than the space name. The space ID typically includes the space name followed by unique characters.
To find the correct space ID:
Use the
space_by_pathdata source if working with the Terraform provider. More info here.You can also locate the space ID in the Spaces View in the Spacelift UI.
For additional guidance on configuring Spacelift stacks, refer to our blog post on Deploying Spacelift with Spacelift.