2.0.48 • Published 3 years ago
typescript-aws-sts-helper v2.0.48
Install
npm install typescript-aws-sts-helper@latest
Usage
Default - running in Lambda in your own account
const logger = new Logger(LogLevel.Trace);
const helper = new STSHelper(logger);
const response = await helper.AssumeRoleAsync('roleArn');
Running in separate account or not in Lambda
import * as STS from '@aws-sdk/client-sts';
const logger = new Logger(LogLevel.Trace);
const options: STS.STSClientConfig = {
accessKeyId: '{access_key}',
secretAccessKey: '{secret_key}',
region: 'us-east-1',
};
const repository = new STS.STS(options);
const helper = new STSHelper(logger, repository);
const response = await helper.AssumeRoleAsync('roleArn');
Notes
If no options are supplied, will default to us-east-1
as the region
Development
Clone the latest and run
npm run prep
to install packages and prep the git hooks
2.0.48
3 years ago
2.0.47
3 years ago
2.0.46
4 years ago
2.0.45
4 years ago
2.0.44
4 years ago
2.0.43
4 years ago
2.0.32
4 years ago
2.0.41
4 years ago
2.0.15
4 years ago
1.0.193
4 years ago
2.0.14
4 years ago
2.0.2
4 years ago
1.0.171
5 years ago
1.0.158
5 years ago
1.0.131
5 years ago
1.0.110
5 years ago
1.0.97
5 years ago
1.0.82
5 years ago
1.0.66
5 years ago
1.0.42
5 years ago
1.0.29
5 years ago
1.0.30
5 years ago
1.0.21
5 years ago
1.0.19
5 years ago
1.0.18
5 years ago
1.0.16
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.14
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago