Skip to content

Commit

Permalink
feat(KLV-30): remove the opaque environment of AWS (#142)
Browse files Browse the repository at this point in the history
Co-authored-by: Siyuan Wang <wangsiyuan.wangsy@bytedance.com>
  • Loading branch information
Thrimbda and Siyuan Wang authored Oct 25, 2020
1 parent b955e8f commit 737d2e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/ormb-storage-initializer/cmd/pull-and-export.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ var pullExportCmd = &cobra.Command{
dstDir := args[1]

// Get username and password from environment
// Here AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID are used
// because Seldon Core does not support renaming the environment variable name.
username := viper.GetString("AWS_ACCESS_KEY_ID")
pwd := viper.GetString("AWS_SECRET_ACCESS_KEY")
username := viper.GetString("ORMB_USERNAME")
pwd := viper.GetString("ORMB_PASSWORD")
// Get the host from the URL.
strs := strings.Split(modelURI, "/")
if len(strs) == 0 {
Expand Down

0 comments on commit 737d2e6

Please sign in to comment.