@gradientedge/cdk-utils 7.2.0 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,11 +88,22 @@ class EcsManager {
88
88
  const ecsTask = new ecs.TaskDefinition(scope, `${id}`, {
89
89
  compatibility: ecs.Compatibility.FARGATE,
90
90
  cpu: props.cpu,
91
+ ephemeralStorageGiB: props.ephemeralStorageGiB,
91
92
  executionRole: role,
92
93
  family: `${props.family}-${scope.props.stage}`,
94
+ ipcMode: props.ipcMode,
95
+ inferenceAccelerators: props.inferenceAccelerators,
93
96
  memoryMiB: props.memoryMiB,
94
97
  networkMode: ecs.NetworkMode.AWS_VPC,
98
+ pidMode: props.pidMode,
99
+ placementConstraints: props.placementConstraints,
100
+ proxyConfiguration: props.proxyConfiguration,
101
+ runtimePlatform: {
102
+ operatingSystemFamily: props.runtimePlatform?.operatingSystemFamily ?? ecs.OperatingSystemFamily.LINUX,
103
+ cpuArchitecture: props.runtimePlatform?.cpuArchitecture ?? ecs.CpuArchitecture.ARM64,
104
+ },
95
105
  taskRole: role,
106
+ volumes: props.volumes,
96
107
  });
97
108
  ecsTask.addContainer('EcsContainer', {
98
109
  cpu: props.cpu ? parseInt(props.cpu) : undefined,
@@ -101,6 +101,7 @@ class LambdaManager {
101
101
  runtime: LambdaManager.NODEJS_RUNTIME,
102
102
  code: code,
103
103
  deadLetterQueue: deadLetterQueue,
104
+ architecture: props.architecture ?? lambda.Architecture.ARM_64,
104
105
  environment: {
105
106
  REGION: scope.props.region,
106
107
  LAST_MODIFIED_TS: new Date().toISOString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "7.2.0",
3
+ "version": "7.4.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -28,6 +28,7 @@
28
28
  "scripts": {
29
29
  "build": "rimraf dist/ && npx tsc && npx lerna run build",
30
30
  "build:production": "rimraf dist/ && npx tsc -p tsconfig.prd.json && npx lerna run build",
31
+ "cu": "ncu -x lerna",
31
32
  "ci": "yarn install --frozen-lockfile && yarn build && yarn validate && yarn docs",
32
33
  "cz": "npx cz",
33
34
  "docs": "rimraf api-docs && npx jsdoc --pedantic -c jsdoc.json .",
@@ -37,6 +38,7 @@
37
38
  "prettier": "npx prettier --check \"**/*.{ts,json,md}\"",
38
39
  "prettify": "npx prettier --write \"**/*.{ts,json,md}\"",
39
40
  "test": "rimraf coverage && npx jest --ci --runInBand",
41
+ "upgrade": "ncu -u -x lerna",
40
42
  "validate": "yarn prettier && yarn test"
41
43
  },
42
44
  "husky": {
@@ -45,12 +47,12 @@
45
47
  }
46
48
  },
47
49
  "dependencies": {
48
- "@types/lodash": "^4.14.188",
50
+ "@types/lodash": "^4.14.190",
49
51
  "@types/node": "^18.11.9",
50
52
  "app-root-path": "^3.1.0",
51
- "aws-cdk-lib": "^2.50.0",
52
- "aws-sdk": "^2.1248.0",
53
- "constructs": "^10.1.150",
53
+ "aws-cdk-lib": "^2.52.0",
54
+ "aws-sdk": "^2.1262.0",
55
+ "constructs": "^10.1.173",
54
56
  "lodash": "^4.17.21",
55
57
  "moment": "^2.29.4",
56
58
  "nconf": "^0.12.0",
@@ -59,34 +61,34 @@
59
61
  },
60
62
  "devDependencies": {
61
63
  "@babel/plugin-proposal-class-properties": "^7.18.6",
62
- "@types/jest": "^29.2.2",
63
- "@typescript-eslint/eslint-plugin": "^5.42.0",
64
- "@typescript-eslint/parser": "^5.42.0",
64
+ "@types/jest": "^29.2.3",
65
+ "@typescript-eslint/eslint-plugin": "^5.44.0",
66
+ "@typescript-eslint/parser": "^5.44.0",
65
67
  "aws-cdk": "*",
66
68
  "babel-eslint": "^10.1.0",
67
69
  "better-docs": "^2.7.2",
68
70
  "codecov": "^3.8.3",
69
71
  "commitizen": "^4.2.5",
70
72
  "dotenv": "^16.0.3",
71
- "eslint": "^8.26.0",
73
+ "eslint": "^8.28.0",
72
74
  "eslint-config-prettier": "^8.5.0",
73
75
  "eslint-plugin-import": "^2.26.0",
74
- "husky": "^8.0.1",
75
- "jest": "^29.2.2",
76
- "jest-extended": "^3.1.0",
77
- "jest-junit": "^14.0.1",
76
+ "husky": "^8.0.2",
77
+ "jest": "^29.3.1",
78
+ "jest-extended": "^3.2.0",
79
+ "jest-junit": "^15.0.0",
78
80
  "jsdoc": "^4.0.0",
79
81
  "jsdoc-babel": "^0.5.0",
80
82
  "jsdoc-mermaid": "^1.0.0",
81
83
  "lerna": "^5.6.2",
82
- "prettier": "^2.7.1",
83
- "prettier-plugin-organize-imports": "^3.1.1",
84
+ "prettier": "^2.8.0",
85
+ "prettier-plugin-organize-imports": "^3.2.1",
84
86
  "rimraf": "^3.0.2",
85
87
  "semantic-release": "^19.0.5",
86
88
  "taffydb": "^2.7.3",
87
89
  "ts-jest": "^29.0.3",
88
90
  "ts-node": "^10.9.1",
89
- "typescript": "4.8.4"
91
+ "typescript": "4.9.3"
90
92
  },
91
93
  "optionalDependencies": {
92
94
  "@babel/core": "^7.20.2",
@@ -81,11 +81,22 @@ export class EcsManager {
81
81
  const ecsTask = new ecs.TaskDefinition(scope, `${id}`, {
82
82
  compatibility: ecs.Compatibility.FARGATE,
83
83
  cpu: props.cpu,
84
+ ephemeralStorageGiB: props.ephemeralStorageGiB,
84
85
  executionRole: role,
85
86
  family: `${props.family}-${scope.props.stage}`,
87
+ ipcMode: props.ipcMode,
88
+ inferenceAccelerators: props.inferenceAccelerators,
86
89
  memoryMiB: props.memoryMiB,
87
90
  networkMode: ecs.NetworkMode.AWS_VPC,
91
+ pidMode: props.pidMode,
92
+ placementConstraints: props.placementConstraints,
93
+ proxyConfiguration: props.proxyConfiguration,
94
+ runtimePlatform: {
95
+ operatingSystemFamily: props.runtimePlatform?.operatingSystemFamily ?? ecs.OperatingSystemFamily.LINUX,
96
+ cpuArchitecture: props.runtimePlatform?.cpuArchitecture ?? ecs.CpuArchitecture.ARM64,
97
+ },
88
98
  taskRole: role,
99
+ volumes: props.volumes,
89
100
  })
90
101
 
91
102
  ecsTask.addContainer('EcsContainer', {
@@ -100,6 +100,7 @@ export class LambdaManager {
100
100
  runtime: LambdaManager.NODEJS_RUNTIME,
101
101
  code: code,
102
102
  deadLetterQueue: deadLetterQueue,
103
+ architecture: props.architecture ?? lambda.Architecture.ARM_64,
103
104
  environment: {
104
105
  REGION: scope.props.region,
105
106
  LAST_MODIFIED_TS: new Date().toISOString(),