feat: Move IAM configuration file creation on backend running, set up… (#89)

* feat: Move IAM configuration file creation on backend running
This commit is contained in:
Jon Austin
2023-06-13 11:13:18 -07:00
committed by GitHub
parent 16a9b6b507
commit 1bcdf948ba
3 changed files with 32 additions and 21 deletions
+6 -1
View File
@@ -160,11 +160,16 @@ func runGateway(be backend.Backend) error {
opts = append(opts, s3api.WithDebug())
}
iam, err := auth.InitIAM()
if err != nil {
return err
}
srv, err := s3api.New(app, be, middlewares.RootUserConfig{
Access: rootUserAccess,
Secret: rootUserSecret,
Region: region,
}, port, auth.New(), opts...)
}, port, iam, opts...)
if err != nil {
return fmt.Errorf("init gateway: %v", err)
}