glassechidna / stackit

Cross-platform CloudFormation CLI tool for easy synchronous and idempotent stack updates
Apache License 2.0
37 stars 7 forks source link

Race condition after bucket creation #51

Open aidansteele opened 3 years ago

aidansteele commented 3 years ago
stackit version 0.0.40
panic: packaging template: packaging template: uploading zip to s3: getting bucket for object upload: creating s3 bucket: OperationAborted: A conflicting conditional operation is currently in progress against this resource. Please try again.
    status code: 409, request id: VP25XTEYVVX82RKS, host id: EmiktUN/9Zk+J6Q8km/2pL2kBl1UaznY8jmM28WU4Z0scl9F1v/iXenOq2KWOMtDBbpUrP2F6yw=

goroutine 1 [running]:
github.com/glassechidna/stackit/cmd.init.6.func1(0xc000103180, 0xc0000712c0, 0x0, 0x4)
    /home/runner/work/stackit/stackit/cmd/up.go:166 +0xd2
github.com/spf13/cobra.(*Command).execute(0xc000103180, 0xc000071200, 0x4, 0x4, 0xc000103180, 0xc000071200)
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830 +0x2aa
github.com/spf13/cobra.(*Command).ExecuteC(0x145ca00, 0xc00009a010, 0xd26831, 0x13)
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2fb
github.com/spf13/cobra.(*Command).Execute(...)
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/glassechidna/stackit/cmd.Execute()
    /home/runner/work/stackit/stackit/cmd/root.go:44 +0xb8
main.main()
    /home/runner/work/stackit/stackit/main.go:20 +0x20