Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrodjpl committed Sep 17, 2024
1 parent 2cf3a73 commit 34f87c6
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions backend/internal/processes/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,6 @@ func BootstrapEnv(appconf *config.AppConfig) {
return
}

shouldUpdateCoreConfigOnBootstrap := true
updateCoreConfigParamValue, err := getSSMParameterValueFromDatabase("bootstrapCoreConfig", store)
if err != nil {
log.WithError(err).Error("Problem fetching bootstrapCoreConfig value")
}
if updateCoreConfigParamValue == "false" {
shouldUpdateCoreConfigOnBootstrap = false
}

if shouldUpdateCoreConfigOnBootstrap {
err = UpdateCoreConfig(appconf, store, nil, "")
if err != nil {
log.WithError(err).Error("Problem updating ssm config")
}
}

err = installGateway(store, appconf)
if err != nil {
log.WithError(err).Error("Error installing HTTPD Gateway")
Expand Down Expand Up @@ -103,6 +87,10 @@ func BootstrapEnv(appconf *config.AppConfig) {
log.WithError(err).Error("Problem writing to auditlog")
}

err = UpdateCoreConfig(appconf, store, nil, "")
if err != nil {
log.WithError(err).Error("Problem updating ssm config")
}
}

func provisionS3(appConfig *config.AppConfig) error {
Expand Down

0 comments on commit 34f87c6

Please sign in to comment.