Skip to content

Commit

Permalink
support overriding aws profile
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Jun 14, 2024
1 parent 20c6884 commit df5a51c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/project/provider/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"io"
"log/slog"
"os"
"path/filepath"
"strings"
"sync"
Expand Down Expand Up @@ -55,6 +56,9 @@ const BOOTSTRAP_VERSION = 1

func (a *AwsProvider) Init(app string, stage string, args map[string]interface{}) error {
ctx := context.Background()
if os.Getenv("SST_AWS_NO_PROFILE") != "" {
delete(args, "profile")
}
cfg, err := config.LoadDefaultConfig(
ctx,
func(lo *config.LoadOptions) error {
Expand Down

0 comments on commit df5a51c

Please sign in to comment.