forked from stackblitz/bolt.new
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Closed
Description
AWS_BEDROCK_CONFIG currently expects hard coded access token, secret token, and session token. These should all be optional, and we should rely on the ai-sdk to handle whatever credentials we attempt. This would allow my use case which relies on ENV vars like EKS IRSA to let the pod assume the role without hard coded access and secret needed at workload initialization. Will work on this if I have time.
EDIT: I see btw that ai-sdk itself set those keys as optional. IMO you shouldn't even verify any of that, just hand it off to the upstream provider which will handle all the errors anyway and eliminate the chore of accounting for what it provides in the first place as it updates.
interface AmazonBedrockProviderSettings {
region?: string;
accessKeyId?: string;
secretAccessKey?: string;
sessionToken?: string;
/**
* Complete Bedrock configuration for setting advanced authentication and
* other options. When this is provided, the region, accessKeyId, and
* secretAccessKey settings are ignored.
*/
bedrockOptions?: BedrockRuntimeClientConfig;
generateId?: () => string;
}
Metadata
Metadata
Assignees
Labels
No labels