MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / constructor

Method constructor

lib/aws.ts:72–78  ·  view source on GitHub ↗
(properties: PropertyGetter)

Source from the content-addressed store, hash-verified

70 tagValue: string;
71
72 constructor(properties: PropertyGetter) {
73 const region = properties<string>('region');
74 logger.info(`New instance fetcher for region ${region}`);
75 this.ec2 = new EC2({region: region, credentials: awsCredentials()});
76 this.tagKey = properties<string>('tagKey');
77 this.tagValue = properties<string>('tagValue');
78 }
79
80 async getInstances() {
81 const result = await this.ec2.describeInstances({});

Callers

nothing calls this directly

Calls 1

awsCredentialsFunction · 0.85

Tested by

no test coverage detected