File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -433,16 +433,11 @@ export const getInferenceProfile = async (
433
433
c : Context
434
434
) => {
435
435
if ( providerOptions . awsAuthType === 'assumedRole' ) {
436
- const { accessKeyId, secretAccessKey, sessionToken } =
437
- ( await getAssumedRoleCredentials (
438
- c ,
439
- providerOptions . awsRoleArn || '' ,
440
- providerOptions . awsExternalId || '' ,
441
- providerOptions . awsRegion || ''
442
- ) ) || { } ;
443
- providerOptions . awsAccessKeyId = accessKeyId ;
444
- providerOptions . awsSecretAccessKey = secretAccessKey ;
445
- providerOptions . awsSessionToken = sessionToken ;
436
+ try {
437
+ await providerAssumedRoleCredentials ( c , providerOptions ) ;
438
+ } catch ( e ) {
439
+ console . error ( 'getInferenceProfile Error while assuming bedrock role' , e ) ;
440
+ }
446
441
}
447
442
448
443
const awsRegion = providerOptions . awsRegion || 'us-east-1' ;
You can’t perform that action at this time.
0 commit comments