diff --git a/secrets_manager/secrets_manager.go b/secrets_manager/secrets_manager.go index 34220c1e714639cca628550a5c5b63f676b074e3..ab8591a59000065af366c9821521deebee4d860f 100644 --- a/secrets_manager/secrets_manager.go +++ b/secrets_manager/secrets_manager.go @@ -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"), })) }