Closed vcatalano closed 3 weeks ago
Hi @vcatalano,
I am very sorry for the late reply. 😞
Are you still running into this issue? If so, I can help you.
Thanks.
You need to mark your first stack as administrative.
You need to mark your first stack as administrative.
Well it's a year later and https://docs.spacelift.io/getting-started still doesn't indicate that, it says:
Leave the default options checked for Define Behavior and click Continue.
It's always fun trying to guess which instructions will be more up-to-date; the docs site or the repo README.
For the next person:
Of course, when I ran again I got:
Sorry, it looks like you don't have permission to see this page. Please reach out to one of your friendly account admins to grant you access. You can also try going back to the home page.
After logging out and back in I reviewed the logs from the second attempt:
Error: could not create context: could not persist context: context with this slug already exists for this account
│
│ with spacelift_context.managed,
│ on context.tf line 7, in resource "spacelift_context" "managed":
│ 7: resource "spacelift_context" "managed" {
│
╵
╷
│ Error: could not create policy All of Engineering gets read access: could not persist policy: policy with this slug already exists for this account
│
│ with spacelift_policy.access,
│ on policies.tf line 9, in resource "spacelift_policy" "access":
│ 9: resource "spacelift_policy" "access" {
│
╵
╷
│ Error: could not create policy Enforce password strength: could not persist policy: policy with this slug already exists for this account
│
│ with spacelift_policy.plan,
│ on policies.tf line 30, in resource "spacelift_policy" "plan":
│ 30: resource "spacelift_policy" "plan" {
│
╵
╷
│ Error: could not create policy Ignore commits outside the project root: could not persist policy: policy with this slug already exists for this account
│
│ with spacelift_policy.push,
│ on policies.tf line 53, in resource "spacelift_policy" "push":
│ 53: resource "spacelift_policy" "push" {
│
╵
╷
│ Error: could not create policy Allow only safe commands: could not persist policy: policy with this slug already exists for this account
│
│ with spacelift_policy.task,
│ on policies.tf line 73, in resource "spacelift_policy" "task":
│ 73: resource "spacelift_policy" "task" {
│
╵
[UUID] Unexpected exit code when applying changes: 1
Edit: P.S., I ended up deleting the stack, including running the suggested terraform destroy
as a one-off task. After re-creating the stack and triggering it, I'm still getting the permissions error. After log-cycling I'm getting the same log output on my failed run.
Are you doing these steps in a fresh account (no other stacks, policies, or contexts)?
Are you doing these steps in a fresh account (no other stacks, policies, or contexts)?
Yes.
it's fucking amazing to me that a bullshit example cannot even work... sad state for tech... maybe AI does stand a chance?
3 year old issue, 1 year since the last commit... FYI Spacelift this are the kind of things your potential users consider when choosing services.
@alexfornuto @cloudnost I am sorry for dropping the ball here. 😞
I agree that this example should always be up-to-date. We have assigned this task to an engineer.
Thanks for the reminder!
Hello all, thanks for opening this issue and apologies for the slow response on our end. We've updated this repository and the getting started page on our documentation so none of the problems listed in this issue should be happening anymore. Please open up further issues if you come across something in the future.
Going through the Getting Started documentation (https://docs.spacelift.io/getting-started) using this forked stack, I'm getting a failure with running the latest from the branch.