Skip to content

Commit f9610d3

Browse files
committed
fix: aws credential provider
1 parent c338145 commit f9610d3

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

app/backend/src/s3Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { S3Client } from 'bun';
2-
import { fromIni } from '@aws-sdk/credential-providers';
2+
import { defaultProvider } from '@aws-sdk/credential-provider-node';
33

44
// Create S3Client with credentials loaded from ~/.aws/credentials and ~/.aws/config files
55
// This automatically picks up credentials, SSO tokens, and handles role assumptions without checking environment variables
6-
const credentials = process.env.CI ? undefined : await fromIni()();
6+
const credentials = process.env.CI ? undefined : await defaultProvider()();
77
export const s3Client = new S3Client(credentials);

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "app",
33
"private": true,
44
"dependencies": {
5-
"@aws-sdk/credential-providers": "3.958.0",
5+
"@aws-sdk/credential-provider-node": "3.962.0",
66
"@headlessui/react": "2.2.9",
77
"@octokit/rest": "22.0.1",
88
"@tanstack/react-query": "5.90.14",

bun.lock

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)