I get the following error when I do a terraform init && terraform plan
Error: unexpected token issuer api-key, is this a Spacelift run?
│
│ with module.spacelift.data.spacelift_current_stack.administrative[0],
│ on .terraform/modules/spacelift/main.tf line 167, in data "spacelift_current_stack" "administrative":
│ 167: data "spacelift_current_stack" "administrative" {
I tried running a spacelift terraform module locally.
I have this in my hcl which works in spacelift
Locally, I set the following inputs
I get the following error when I do a
terraform init && terraform plan
Followed this guide https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs#running-outside-of-spacelift