AWS SDK for JavaScript STS Client for Node.js, Browser and React Native, providing temporary security credentials and role assumption capabilities
92
Evaluation — 92%
↑ 1.05xAgent success when using this tile
{
"context": "This evaluation assesses how well the engineer uses the AWS SDK for JavaScript v3's credential provider chain functionality, specifically the process credentials provider, to load credentials from AWS config profiles and create authenticated STS clients.",
"type": "weighted_checklist",
"checklist": [
{
"name": "fromProcess usage",
"description": "Uses the @aws-sdk/credential-provider-process package's fromProcess() function to create a credential provider from the profile configuration",
"max_score": 25
},
{
"name": "Profile configuration",
"description": "Correctly reads and parses the AWS config file to extract the credential_process command from the specified profile using parseIni or equivalent functionality",
"max_score": 20
},
{
"name": "STSClient instantiation",
"description": "Creates an STSClient instance from @aws-sdk/client-sts with the credentials option properly configured using the process credential provider",
"max_score": 20
},
{
"name": "GetCallerIdentityCommand",
"description": "Uses GetCallerIdentityCommand from @aws-sdk/client-sts to verify credentials by calling client.send() with the command",
"max_score": 15
},
{
"name": "Credential format",
"description": "Returns or handles credentials in the correct format with accessKeyId, secretAccessKey, and optional sessionToken and expiration fields",
"max_score": 10
},
{
"name": "Error handling",
"description": "Properly handles and throws errors when profile is missing, credential_process is not configured, or process execution fails",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-aws-sdk--client-stsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10