(properties: PropertyGetter)
| 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({}); |
nothing calls this directly
no test coverage detected