Skip to content

Commit 7d76eec

Browse files
authored
chore: replace npm private package scope by an org we own (#4103)
## Description This change replaces the scope of the scope by an [org](https://www.npmjs.com/org/aws-github-runner) we own. Although packages are proper locked by scope and workspace this is only to make absolute sure we own the namespace.
1 parent c6670bd commit 7d76eec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+315
-329
lines changed

lambdas/functions/ami-housekeeper/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@terraform-aws-github-runner/ami-housekeeper",
2+
"name": "@aws-github-runner/ami-housekeeper",
33
"version": "1.0.0",
44
"main": "lambda.ts",
55
"license": "MIT",
@@ -37,11 +37,11 @@
3737
"ts-node-dev": "^2.0.0"
3838
},
3939
"dependencies": {
40+
"@aws-github-runner/aws-powertools-util": "*",
41+
"@aws-github-runner/aws-ssm-util": "*",
4042
"@aws-sdk/client-ec2": "^3.637.0",
4143
"@aws-sdk/client-ssm": "^3.637.0",
4244
"@aws-sdk/types": "^3.609.0",
43-
"@terraform-aws-github-runner/aws-powertools-util": "*",
44-
"@terraform-aws-github-runner/aws-ssm-util": "*",
4545
"cron-parser": "^4.9.0",
4646
"typescript": "^5.5.4"
4747
},

lambdas/functions/ami-housekeeper/src/ami.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
Image,
1010
} from '@aws-sdk/client-ec2';
1111
import { DescribeParametersCommand, GetParameterCommand, SSMClient } from '@aws-sdk/client-ssm';
12-
import { createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
13-
import { getTracedAWSV3Client } from '@terraform-aws-github-runner/aws-powertools-util';
12+
import { createChildLogger } from '@aws-github-runner/aws-powertools-util';
13+
import { getTracedAWSV3Client } from '@aws-github-runner/aws-powertools-util';
1414

1515
const logger = createChildLogger('ami');
1616

lambdas/functions/ami-housekeeper/src/lambda.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { logger } from '@aws-github-runner/aws-powertools-util';
22
import { Context } from 'aws-lambda';
33
import { mocked } from 'jest-mock';
44

55
import { AmiCleanupOptions, amiCleanup } from './ami';
66
import { handler } from './lambda';
77

88
jest.mock('./ami');
9-
jest.mock('@terraform-aws-github-runner/aws-powertools-util');
9+
jest.mock('@aws-github-runner/aws-powertools-util');
1010

1111
const amiCleanupOptions: AmiCleanupOptions = {
1212
minimumDaysOld: undefined,

lambdas/functions/ami-housekeeper/src/lambda.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger, setContext } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { logger, setContext } from '@aws-github-runner/aws-powertools-util';
22
import { Context } from 'aws-lambda';
33
import 'source-map-support/register';
44

lambdas/functions/ami-housekeeper/src/local.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { logger } from '@aws-github-runner/aws-powertools-util';
22

33
import { amiCleanup } from './ami';
44

lambdas/functions/control-plane/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@terraform-aws-github-runner/control-plane",
2+
"name": "@aws-github-runner/control-plane",
33
"version": "1.0.0",
44
"main": "lambda.ts",
55
"license": "MIT",
@@ -38,6 +38,8 @@
3838
"ts-node-dev": "^2.0.0"
3939
},
4040
"dependencies": {
41+
"@aws-github-runner/aws-powertools-util": "*",
42+
"@aws-github-runner/aws-ssm-util": "*",
4143
"@aws-lambda-powertools/parameters": "^2.7.0",
4244
"@aws-sdk/client-ec2": "^3.637.0",
4345
"@aws-sdk/client-sqs": "^3.637.0",
@@ -48,8 +50,6 @@
4850
"@octokit/plugin-throttling": "8.2.0",
4951
"@octokit/rest": "20.1.1",
5052
"@octokit/types": "^13.5.0",
51-
"@terraform-aws-github-runner/aws-powertools-util": "*",
52-
"@terraform-aws-github-runner/aws-ssm-util": "*",
5353
"cron-parser": "^4.9.0",
5454
"typescript": "^5.5.4"
5555
},

lambdas/functions/control-plane/src/aws/runners.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
TerminateInstancesCommand,
1313
} from '@aws-sdk/client-ec2';
1414
import { GetParameterCommand, GetParameterResult, PutParameterCommand, SSMClient } from '@aws-sdk/client-ssm';
15-
import { tracer } from '@terraform-aws-github-runner/aws-powertools-util';
15+
import { tracer } from '@aws-github-runner/aws-powertools-util';
1616
import { mockClient } from 'aws-sdk-client-mock';
1717
import 'aws-sdk-client-mock-jest';
1818

lambdas/functions/control-plane/src/aws/runners.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {
1010
TerminateInstancesCommand,
1111
_InstanceType,
1212
} from '@aws-sdk/client-ec2';
13-
import { createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
14-
import { getTracedAWSV3Client, tracer } from '@terraform-aws-github-runner/aws-powertools-util';
15-
import { getParameter } from '@terraform-aws-github-runner/aws-ssm-util';
13+
import { createChildLogger } from '@aws-github-runner/aws-powertools-util';
14+
import { getTracedAWSV3Client, tracer } from '@aws-github-runner/aws-powertools-util';
15+
import { getParameter } from '@aws-github-runner/aws-ssm-util';
1616
import moment from 'moment';
1717

1818
import ScaleError from './../scale-runners/ScaleError';

lambdas/functions/control-plane/src/aws/sqs.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { SendMessageCommand, SQSClient } from '@aws-sdk/client-sqs';
22
import { mockClient } from 'aws-sdk-client-mock';
33
import 'aws-sdk-client-mock-jest';
44
import { publishMessage } from './sqs';
5-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
5+
import { logger } from '@aws-github-runner/aws-powertools-util';
66

77
const mockSQSClient = mockClient(SQSClient);
88

lambdas/functions/control-plane/src/aws/sqs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SQSClient, SendMessageCommand, SendMessageCommandOutput } from '@aws-sdk/client-sqs';
2-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
2+
import { logger } from '@aws-github-runner/aws-powertools-util';
33

44
const sqs = new SQSClient({});
55

lambdas/functions/control-plane/src/github/auth.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { createAppAuth } from '@octokit/auth-app';
22
import { StrategyOptions } from '@octokit/auth-app/dist-types/types';
33
import { request } from '@octokit/request';
44
import { RequestInterface } from '@octokit/types';
5-
import { getParameter } from '@terraform-aws-github-runner/aws-ssm-util';
5+
import { getParameter } from '@aws-github-runner/aws-ssm-util';
66
import { mocked } from 'jest-mock';
77
import { MockProxy, mock } from 'jest-mock-extended';
88
import nock from 'nock';
99

1010
import { createGithubAppAuth, createOctokitClient } from './auth';
1111

12-
jest.mock('@terraform-aws-github-runner/aws-ssm-util');
12+
jest.mock('@aws-github-runner/aws-ssm-util');
1313
jest.mock('@octokit/auth-app');
1414

1515
const cleanEnv = process.env;

lambdas/functions/control-plane/src/github/auth.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { OctokitOptions } from '@octokit/core/dist-types/types';
1111
import { request } from '@octokit/request';
1212
import { Octokit } from '@octokit/rest';
1313
import { throttling } from '@octokit/plugin-throttling';
14-
import { createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
15-
import { getParameter } from '@terraform-aws-github-runner/aws-ssm-util';
14+
import { createChildLogger } from '@aws-github-runner/aws-powertools-util';
15+
import { getParameter } from '@aws-github-runner/aws-ssm-util';
1616
import { EndpointDefaults } from '@octokit/types';
1717

1818
const logger = createChildLogger('gh-auth');

lambdas/functions/control-plane/src/github/rate-limit.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { ResponseHeaders } from '@octokit/types';
2-
import { createSingleMetric } from '@terraform-aws-github-runner/aws-powertools-util';
2+
import { createSingleMetric } from '@aws-github-runner/aws-powertools-util';
33
import { MetricUnit } from '@aws-lambda-powertools/metrics';
44
import { metricGitHubAppRateLimit } from './rate-limit';
55

66
process.env.PARAMETER_GITHUB_APP_ID_NAME = 'test';
7-
jest.mock('@terraform-aws-github-runner/aws-ssm-util', () => ({
8-
...jest.requireActual('@terraform-aws-github-runner/aws-ssm-util'),
7+
jest.mock('@aws-github-runner/aws-ssm-util', () => ({
8+
...jest.requireActual('@aws-github-runner/aws-ssm-util'),
99
// get parameter name from process.env.PARAMETER_GITHUB_APP_ID_NAME rerunt 1234
1010
getParameter: jest.fn((name: string) => {
1111
if (name === process.env.PARAMETER_GITHUB_APP_ID_NAME) {
@@ -16,8 +16,8 @@ jest.mock('@terraform-aws-github-runner/aws-ssm-util', () => ({
1616
}),
1717
}));
1818

19-
jest.mock('@terraform-aws-github-runner/aws-powertools-util', () => ({
20-
...jest.requireActual('@terraform-aws-github-runner/aws-powertools-util'),
19+
jest.mock('@aws-github-runner/aws-powertools-util', () => ({
20+
...jest.requireActual('@aws-github-runner/aws-powertools-util'),
2121
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2222
createSingleMetric: jest.fn((name: string, unit: string, value: number, dimensions?: Record<string, string>) => {
2323
return {

lambdas/functions/control-plane/src/github/rate-limit.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { ResponseHeaders } from '@octokit/types';
2-
import { createSingleMetric, logger } from '@terraform-aws-github-runner/aws-powertools-util';
2+
import { createSingleMetric, logger } from '@aws-github-runner/aws-powertools-util';
33
import { MetricUnit } from '@aws-lambda-powertools/metrics';
44
import yn from 'yn';
5-
import { getParameter } from '@terraform-aws-github-runner/aws-ssm-util';
5+
import { getParameter } from '@aws-github-runner/aws-ssm-util';
66

77
export async function metricGitHubAppRateLimit(headers: ResponseHeaders): Promise<void> {
88
try {

lambdas/functions/control-plane/src/lambda.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { captureLambdaHandler, logger } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { captureLambdaHandler, logger } from '@aws-github-runner/aws-powertools-util';
22
import { Context, SQSEvent, SQSRecord } from 'aws-lambda';
33
import { mocked } from 'jest-mock';
44

@@ -66,8 +66,8 @@ jest.mock('./scale-runners/scale-down');
6666
jest.mock('./scale-runners/scale-up');
6767
jest.mock('./scale-runners/ssm-housekeeper');
6868
jest.mock('./scale-runners/job-retry');
69-
jest.mock('@terraform-aws-github-runner/aws-powertools-util');
70-
jest.mock('@terraform-aws-github-runner/aws-ssm-util');
69+
jest.mock('@aws-github-runner/aws-powertools-util');
70+
jest.mock('@aws-github-runner/aws-ssm-util');
7171

7272
// Docs for testing async with jest: https://jestjs.io/docs/tutorial-async
7373
describe('Test scale up lambda wrapper.', () => {

lambdas/functions/control-plane/src/lambda.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import middy from '@middy/core';
2-
import { logger, setContext } from '@terraform-aws-github-runner/aws-powertools-util';
3-
import { captureLambdaHandler, tracer } from '@terraform-aws-github-runner/aws-powertools-util';
2+
import { logger, setContext } from '@aws-github-runner/aws-powertools-util';
3+
import { captureLambdaHandler, tracer } from '@aws-github-runner/aws-powertools-util';
44
import { Context, SQSEvent } from 'aws-lambda';
55

66
import { PoolEvent, adjust } from './pool/pool';

lambdas/functions/control-plane/src/local.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { logger } from '@aws-github-runner/aws-powertools-util';
22

33
import { ActionRequestMessage, scaleUp } from './scale-runners/scale-up';
44

lambdas/functions/control-plane/src/pool/pool.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Octokit } from '@octokit/rest';
2-
import { createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
2+
import { createChildLogger } from '@aws-github-runner/aws-powertools-util';
33
import yn from 'yn';
44

55
import { bootTimeExceeded, listEC2Runners } from '../aws/runners';

lambdas/functions/control-plane/src/scale-runners/job-retry.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { ActionRequestMessage, ActionRequestMessageRetry } from './scale-up';
44
import { getOctokit } from '../github/octokit';
55
import { Octokit } from '@octokit/rest';
66
import { mocked } from 'jest-mock';
7-
import { createSingleMetric } from '@terraform-aws-github-runner/aws-powertools-util';
7+
import { createSingleMetric } from '@aws-github-runner/aws-powertools-util';
88

99
jest.mock('../aws/sqs');
1010

11-
jest.mock('@terraform-aws-github-runner/aws-powertools-util', () => ({
12-
...jest.requireActual('@terraform-aws-github-runner/aws-powertools-util'),
11+
jest.mock('@aws-github-runner/aws-powertools-util', () => ({
12+
...jest.requireActual('@aws-github-runner/aws-powertools-util'),
1313
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1414
createSingleMetric: jest.fn((name: string, unit: string, value: number, dimensions?: Record<string, string>) => {
1515
return {

lambdas/functions/control-plane/src/scale-runners/job-retry.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
addPersistentContextToChildLogger,
3-
createSingleMetric,
4-
logger,
5-
} from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { addPersistentContextToChildLogger, createSingleMetric, logger } from '@aws-github-runner/aws-powertools-util';
62
import { publishMessage } from '../aws/sqs';
73
import { ActionRequestMessage, ActionRequestMessageRetry, getGitHubEnterpriseApiUrl, isJobQueued } from './scale-up';
84
import { getOctokit } from '../github/octokit';

lambdas/functions/control-plane/src/scale-runners/scale-down-config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { createChildLogger } from '@aws-github-runner/aws-powertools-util';
22
import parser from 'cron-parser';
33
import moment from 'moment';
44

lambdas/functions/control-plane/src/scale-runners/scale-down.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Octokit } from '@octokit/rest';
2-
import { createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
2+
import { createChildLogger } from '@aws-github-runner/aws-powertools-util';
33
import moment from 'moment';
44

55
import { createGithubAppAuth, createGithubInstallationAuth, createOctokitClient } from '../github/auth';

lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { createRunner, listEC2Runners } from './../aws/runners';
1111
import { RunnerInputParameters } from './../aws/runners.d';
1212
import ScaleError from './ScaleError';
1313
import * as scaleUpModule from './scale-up';
14-
import { getParameter } from '@terraform-aws-github-runner/aws-ssm-util';
14+
import { getParameter } from '@aws-github-runner/aws-ssm-util';
1515

1616
const mockOctokit = {
1717
paginate: jest.fn(),
@@ -40,8 +40,8 @@ jest.mock('@octokit/rest', () => ({
4040
jest.mock('./../aws/runners');
4141
jest.mock('./../github/auth');
4242

43-
jest.mock('@terraform-aws-github-runner/aws-ssm-util', () => ({
44-
...jest.requireActual('@terraform-aws-github-runner/aws-ssm-util'),
43+
jest.mock('@aws-github-runner/aws-ssm-util', () => ({
44+
...jest.requireActual('@aws-github-runner/aws-ssm-util'),
4545
getParameter: jest.fn(),
4646
}));
4747

lambdas/functions/control-plane/src/scale-runners/scale-up.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Octokit } from '@octokit/rest';
2-
import { addPersistentContextToChildLogger, createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
3-
import { getParameter, putParameter } from '@terraform-aws-github-runner/aws-ssm-util';
2+
import { addPersistentContextToChildLogger, createChildLogger } from '@aws-github-runner/aws-powertools-util';
3+
import { getParameter, putParameter } from '@aws-github-runner/aws-ssm-util';
44
import yn from 'yn';
55

66
import { createGithubAppAuth, createGithubInstallationAuth, createOctokitClient } from '../github/auth';

lambdas/functions/control-plane/src/scale-runners/ssm-housekeeper.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DeleteParameterCommand, GetParametersByPathCommand, SSMClient } from '@aws-sdk/client-ssm';
2-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
3-
import { getTracedAWSV3Client } from '@terraform-aws-github-runner/aws-powertools-util';
2+
import { logger } from '@aws-github-runner/aws-powertools-util';
3+
import { getTracedAWSV3Client } from '@aws-github-runner/aws-powertools-util';
44

55
export interface SSMCleanupOptions {
66
dryRun: boolean;

lambdas/functions/gh-agent-syncer/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@terraform-aws-github-runner/gh-agent-syncer",
2+
"name": "@aws-github-runner/gh-agent-syncer",
33
"version": "1.0.0",
44
"main": "lambda.ts",
55
"license": "MIT",
@@ -36,12 +36,12 @@
3636
"typescript": "^5.5.4"
3737
},
3838
"dependencies": {
39+
"@aws-github-runner/aws-powertools-util": "*",
3940
"@aws-sdk/client-s3": "^3.637.0",
4041
"@aws-sdk/lib-storage": "^3.637.0",
4142
"@aws-sdk/types": "^3.609.0",
4243
"@middy/core": "^4.7.0",
4344
"@octokit/rest": "20.1.1",
44-
"@terraform-aws-github-runner/aws-powertools-util": "*",
4545
"axios": "^1.7.5"
4646
},
4747
"nx": {

lambdas/functions/gh-agent-syncer/src/lambda.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import middy from '@middy/core';
2-
import { logger, setContext } from '@terraform-aws-github-runner/aws-powertools-util';
3-
import { captureLambdaHandler, tracer } from '@terraform-aws-github-runner/aws-powertools-util';
2+
import { logger, setContext } from '@aws-github-runner/aws-powertools-util';
3+
import { captureLambdaHandler, tracer } from '@aws-github-runner/aws-powertools-util';
44
import { Context } from 'aws-lambda';
55

66
import { sync } from './syncer/syncer';

lambdas/functions/gh-agent-syncer/src/local.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { logger } from '@aws-github-runner/aws-powertools-util';
22

33
import { sync } from './syncer/syncer';
44

lambdas/functions/gh-agent-syncer/src/syncer/syncer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { GetObjectTaggingCommand, S3Client, ServerSideEncryption, Tag } from '@aws-sdk/client-s3';
22
import { Upload } from '@aws-sdk/lib-storage';
33
import { Octokit } from '@octokit/rest';
4-
import { createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
5-
import { getTracedAWSV3Client } from '@terraform-aws-github-runner/aws-powertools-util';
4+
import { createChildLogger } from '@aws-github-runner/aws-powertools-util';
5+
import { getTracedAWSV3Client } from '@aws-github-runner/aws-powertools-util';
66
import axios from 'axios';
77
import { Stream } from 'stream';
88

lambdas/functions/termination-watcher/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@terraform-aws-github-runner/termination-watcher",
2+
"name": "@aws-github-runner/termination-watcher",
33
"version": "1.0.0",
44
"main": "lambda.ts",
55
"license": "MIT",
@@ -35,10 +35,10 @@
3535
"ts-node-dev": "^2.0.0"
3636
},
3737
"dependencies": {
38+
"@aws-github-runner/aws-powertools-util": "*",
3839
"@aws-sdk/client-ec2": "^3.637.0",
3940
"@aws-sdk/types": "^3.609.0",
4041
"@middy/core": "^4.7.0",
41-
"@terraform-aws-github-runner/aws-powertools-util": "*",
4242
"typescript": "^5.5.4"
4343
},
4444
"nx": {

lambdas/functions/termination-watcher/src/ConfigResolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { createChildLogger } from '@aws-github-runner/aws-powertools-util';
22

33
export class Config {
44
createSpotWarningMetric: boolean;

lambdas/functions/termination-watcher/src/lambda.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { logger } from '@aws-github-runner/aws-powertools-util';
22
import { Context } from 'aws-lambda';
33
import { mocked } from 'jest-mock';
44

lambdas/functions/termination-watcher/src/lambda.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import middy from '@middy/core';
2-
import {
3-
captureLambdaHandler,
4-
logger,
5-
metrics,
6-
setContext,
7-
tracer,
8-
} from '@terraform-aws-github-runner/aws-powertools-util';
2+
import { captureLambdaHandler, logger, metrics, setContext, tracer } from '@aws-github-runner/aws-powertools-util';
93
import { logMetrics } from '@aws-lambda-powertools/metrics/middleware';
104
import { Context } from 'aws-lambda';
115

0 commit comments

Comments
 (0)