I am trying to use Spacelift's external state access however I get the following error:

Error: Error loading state error 
│ with module.service.data.terraform_remote_state.environment, 
│ on ../modules/service/ecs.tf line 79, in data "terraform_remote_state" "environment": 
│ 79: backend = "remote" 
│ error loading the remote state: Error creating workspace test-stack: cannot 
│ create a workspace

My block looks like:

 data "terraform_remote_state" "environment" {
  backend = "remote"

  config = {
    hostname     = "spacelift.io"
    organization = "<organizationname>"

    workspaces = {
      name = "test-stack"

I have external state access enabled on the stack but still get this error.

1 Answer 1


Check if the caller stack is set to Administrative.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.