Skip to content

Commit

Permalink
fix: S3 config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sniij committed Jan 5, 2025
1 parent 39832c7 commit 2d2c94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload-to-s3/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func LambdaHandler(ctx context.Context, request events.APIGatewayProxyRequest) (
}, nil
}
// S3 설정 초기화
cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("ap-northeast-2"))
cfg, err := config.LoadDefaultConfig(ctx)
if err != nil {
log.Fatalf("failed to load AWS config: %v", err)
}
Expand Down

0 comments on commit 2d2c94a

Please sign in to comment.