Skip to content

Commit

Permalink
clean up install
Browse files Browse the repository at this point in the history
  • Loading branch information
Barber authored and Barber committed Dec 4, 2023
1 parent 4d415f3 commit d6bb5d3
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions backend/internal/processes/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ import (

func BootstrapEnv(appconf *config.AppConfig) {
store, err := database.NewGormDatastore()

if err != nil {
log.WithError(err).Error("Problem creating database")
}
provisionS3(appconf)
storeDefaultSSMParameters(appconf, store)
initTerraform(store, appconf)

storeDefaultSSMParameters(appconf, store)
//r := action.ActRunnerImpl{}
err = UpdateCoreConfig(appconf, store, nil, "")
if err != nil {
log.WithError(err).Error("Problem updating ssm config")
}
//err = UpdateCoreConfig(appconf, store, nil, "")
//if err != nil {
// log.WithError(err).Error("Problem updating ssm config")
//}
installGateway(store, appconf)
}

Expand All @@ -37,7 +39,10 @@ func provisionS3(appConfig *config.AppConfig) {
func initTerraform(store database.Datastore, appconf *config.AppConfig) {
fs := afero.NewOsFs()
writeInitTemplate(fs, appconf)
installUnityCloudEnv(store, appconf)
err := installUnityCloudEnv(store, appconf)
if err != nil {
return
}

}

Expand Down

0 comments on commit d6bb5d3

Please sign in to comment.