blob: 1e230097346683e3151048ec42d2c13b2cc4da1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { getEnvRequired } from "../base.ts";
export class AwsContext {
readonly region = "ap-southeast-1";
accessKeyId = getEnvRequired("AWS_USER", "aws access key id");
secretAccessKey = getEnvRequired("AWS_PASSWORD", "aws secret access key");
getCredentials() {
const { accessKeyId, secretAccessKey } = this;
return Promise.resolve({ accessKeyId, secretAccessKey });
}
readonly credentials = this.getCredentials.bind(this);
}
|