Skip to content
Snippets Groups Projects
Commit 1bc22c84 authored by Francé Wilke's avatar Francé Wilke
Browse files

Fix getting aws profile from env variables

parent 34b6330a
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@ package secrets_manager
import (
"encoding/base64"
"fmt"
"os"
"gitlab.com/uafrica/go-utils/logs"
......@@ -52,10 +51,9 @@ func getSecret(secretID string, isDebug bool) (string, string) {
// Get local config
if isDebug && os.Getenv("ENVIRONMENT") != "" {
env := os.Getenv("ENVIRONMENT")
awsSession = session.Must(session.NewSessionWithOptions(session.Options{
SharedConfigState: session.SharedConfigEnable,
Profile: fmt.Sprintf("shiplogic-%s", env),
Profile: os.Getenv("AWS_PROFILE"),
}))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment