diff --git a/package-lock.json b/package-lock.json index 3296c40..1e9ea4c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,14 +12,14 @@ "@types/aws-lambda": "^8.10.101", "@types/node": "10.17.27", "@types/prettier": "2.6.0", - "aws-cdk-lib": "2.138.0", + "aws-cdk-lib": "2.77.0", "constructs": "^10.0.0", "release-it": "^14.12.5", "ts-node": "^10.7.0", "typescript": "~3.9.7" }, "peerDependencies": { - "aws-cdk": "^2.138.0", + "aws-cdk": "^2.77.0", "constructs": "^10.0.0" } }, @@ -27,18 +27,20 @@ "version": "2.2.202", "resolved": "https://registry.npmjs.org/@aws-cdk/asset-awscli-v1/-/asset-awscli-v1-2.2.202.tgz", "integrity": "sha512-JqlF0D4+EVugnG5dAsNZMqhu3HW7ehOXm5SDMxMbXNDMdsF0pxtQKNHRl52z1U9igsHmaFpUgSGjbhAJ+0JONg==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, "node_modules/@aws-cdk/asset-kubectl-v20": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/@aws-cdk/asset-kubectl-v20/-/asset-kubectl-v20-2.1.2.tgz", "integrity": "sha512-3M2tELJOxQv0apCIiuKQ4pAbncz9GuLwnKFqxifWfe77wuMxyTRPmxssYHs42ePqzap1LT6GDcPygGs+hHstLg==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, - "node_modules/@aws-cdk/asset-node-proxy-agent-v6": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v6/-/asset-node-proxy-agent-v6-2.0.3.tgz", - "integrity": "sha512-twhuEG+JPOYCYPx/xy5uH2+VUsIEhPTzDY0F1KuB+ocjWWB/KEDiOVL19nHvbPCB6fhWnkykXEMJ4HHcKvjtvg==", + "node_modules/@aws-cdk/asset-node-proxy-agent-v5": { + "version": "2.0.166", + "resolved": "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v5/-/asset-node-proxy-agent-v5-2.0.166.tgz", + "integrity": "sha512-j0xnccpUQHXJKPgCwQcGGNu4lRiC1PptYfdxBIH1L4dRK91iBxtSQHESRQX+yB47oGLaF/WfNN/aF3WXwlhikg==", "dev": true, "license": "Apache-2.0" }, @@ -586,9 +588,9 @@ } }, "node_modules/aws-cdk-lib": { - "version": "2.138.0", - "resolved": "https://registry.npmjs.org/aws-cdk-lib/-/aws-cdk-lib-2.138.0.tgz", - "integrity": "sha512-BdLOd6Fkl/7PH8RahRbhYQf3zRFCxVtOdkKOAZHHqtaNkmTyfkUGMXyzyQ4rIHvR8EOy1C1x5CAufqoZuJM0gA==", + "version": "2.77.0", + "resolved": "https://registry.npmjs.org/aws-cdk-lib/-/aws-cdk-lib-2.77.0.tgz", + "integrity": "sha512-T0GUFHBY1B+LkyGk1Df5E1PXwHa7BqvafD4pGvpwWqu8Mu9s/i0kp8YJu6xY//hEC5R8O7V6bfyQJ0S9pUqwQg==", "bundleDependencies": [ "@balena/dockerignore", "case", @@ -599,25 +601,23 @@ "punycode", "semver", "table", - "yaml", - "mime-types" + "yaml" ], "dev": true, "license": "Apache-2.0", "dependencies": { - "@aws-cdk/asset-awscli-v1": "^2.2.202", - "@aws-cdk/asset-kubectl-v20": "^2.1.2", - "@aws-cdk/asset-node-proxy-agent-v6": "^2.0.3", + "@aws-cdk/asset-awscli-v1": "^2.2.97", + "@aws-cdk/asset-kubectl-v20": "^2.1.1", + "@aws-cdk/asset-node-proxy-agent-v5": "^2.0.77", "@balena/dockerignore": "^1.0.2", "case": "1.6.3", - "fs-extra": "^11.2.0", - "ignore": "^5.3.1", + "fs-extra": "^9.1.0", + "ignore": "^5.2.4", "jsonschema": "^1.4.1", - "mime-types": "^2.1.35", "minimatch": "^3.1.2", - "punycode": "^2.3.1", - "semver": "^7.6.0", - "table": "^6.8.2", + "punycode": "^2.3.0", + "semver": "^7.3.8", + "table": "^6.8.1", "yaml": "1.10.2" }, "engines": { @@ -682,6 +682,15 @@ "node": ">=8" } }, + "node_modules/aws-cdk-lib/node_modules/at-least-node": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/aws-cdk-lib/node_modules/balanced-match": { "version": "1.0.2", "dev": true, @@ -744,27 +753,28 @@ "license": "MIT" }, "node_modules/aws-cdk-lib/node_modules/fs-extra": { - "version": "11.2.0", + "version": "9.1.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { + "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" }, "engines": { - "node": ">=14.14" + "node": ">=10" } }, "node_modules/aws-cdk-lib/node_modules/graceful-fs": { - "version": "4.2.11", + "version": "4.2.10", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/aws-cdk-lib/node_modules/ignore": { - "version": "5.3.1", + "version": "5.2.4", "dev": true, "inBundle": true, "license": "MIT", @@ -826,27 +836,6 @@ "node": ">=10" } }, - "node_modules/aws-cdk-lib/node_modules/mime-db": { - "version": "1.52.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/aws-cdk-lib/node_modules/mime-types": { - "version": "2.1.35", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/aws-cdk-lib/node_modules/minimatch": { "version": "3.1.2", "dev": true, @@ -860,7 +849,7 @@ } }, "node_modules/aws-cdk-lib/node_modules/punycode": { - "version": "2.3.1", + "version": "2.3.0", "dev": true, "inBundle": true, "license": "MIT", @@ -878,7 +867,7 @@ } }, "node_modules/aws-cdk-lib/node_modules/semver": { - "version": "7.6.0", + "version": "7.3.8", "dev": true, "inBundle": true, "license": "ISC", @@ -936,7 +925,7 @@ } }, "node_modules/aws-cdk-lib/node_modules/table": { - "version": "6.8.2", + "version": "6.8.1", "dev": true, "inBundle": true, "license": "BSD-3-Clause", @@ -952,7 +941,7 @@ } }, "node_modules/aws-cdk-lib/node_modules/universalify": { - "version": "2.0.1", + "version": "2.0.0", "dev": true, "inBundle": true, "license": "MIT", diff --git a/package.json b/package.json index faf9841..b8e8e44 100644 --- a/package.json +++ b/package.json @@ -16,14 +16,14 @@ "@types/aws-lambda": "^8.10.101", "@types/node": "10.17.27", "@types/prettier": "2.6.0", - "aws-cdk-lib": "2.138.0", + "aws-cdk-lib": "2.77.0", "constructs": "^10.0.0", "release-it": "^14.12.5", "ts-node": "^10.7.0", "typescript": "~3.9.7" }, "peerDependencies": { - "aws-cdk": "^2.138.0", + "aws-cdk": "^2.77.0", "constructs": "^10.0.0" }, "repository": { diff --git a/src/index.ts b/src/index.ts index b222bb8..5d97160 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,7 +35,7 @@ export class CloudWatchAlarmCreator extends Construct { functionName: `${this.prefix}alarms-cr-function${this.postfix}`, code: lambda.Code.fromAsset(path.join(__dirname, "functions")), handler: "index.handler", - runtime: lambda.Runtime.NODEJS_20_X, + runtime: lambda.Runtime.NODEJS_18_X, memorySize: 512, timeout: cdk.Duration.minutes(1), logRetention: log.RetentionDays.ONE_DAY,