Every line of 'aws config credentials get' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
209 function getCredentials(privatePath, region) { 210 const fileName = 'aws-project-credentials'; 211 const creds = safeReq(path.join(privatePath, fileName + '.json'), fileName); 212 creds.secretAccessKey = creds.secretAccessKey || creds.SecretAccessKey; 213 creds.accessKeyId = creds.accessKeyId || creds.AccessKeyId; 214 creds.region = region; 215 creds.apiVersin = API_VERSION; 216 return creds; 217 }