@gradientedge/cdk-utils 8.19.0 → 8.21.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.
@@ -15,7 +15,7 @@
15
15
  "uuid@^9.0.0"
16
16
  ],
17
17
  "lockfileEntries": {
18
- "@types/uuid@^9.0.0": "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.0.tgz#53ef263e5239728b56096b0a869595135b7952d2",
18
+ "@types/uuid@^9.0.0": "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.1.tgz#98586dc36aee8dacc98cc396dbca8d0429647aa6",
19
19
  "balanced-match@^1.0.0": "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee",
20
20
  "brace-expansion@^1.1.7": "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd",
21
21
  "concat-map@0.0.1": "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b",
@@ -8,7 +8,7 @@ This package contains type definitions for uuid (https://github.com/uuidjs/uuid)
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 29 Nov 2022 18:32:57 GMT
11
+ * Last updated: Wed, 22 Feb 2023 02:32:35 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
@@ -63,7 +63,7 @@ type v5 = v5Buffer & v5String & v5Static;
63
63
 
64
64
  type NIL = string;
65
65
 
66
- type parse = (uuid: string) => OutputBuffer;
66
+ type parse = (uuid: string) => Uint8Array;
67
67
  type stringify = (buffer: InputBuffer, offset?: number) => string;
68
68
  type validate = (uuid: string) => boolean;
69
69
  type version = (uuid: string) => number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/uuid",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "TypeScript definitions for uuid",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid",
6
6
  "license": "MIT",
@@ -40,8 +40,8 @@
40
40
  },
41
41
  "scripts": {},
42
42
  "dependencies": {},
43
- "typesPublisherContentHash": "fcbbe0ed3964850f2ba3f7c63e9bf38a037f990945fb14bb976e9420e2d9d0b0",
44
- "typeScriptVersion": "4.1",
43
+ "typesPublisherContentHash": "960e341662c90dd3808bb9d88f8b2b55d25603a5e59a0adce183de525875f416",
44
+ "typeScriptVersion": "4.2",
45
45
  "exports": {
46
46
  "./package.json": "./package.json",
47
47
  ".": {
@@ -93,6 +93,7 @@ class SiteWithEcsBackend extends common_1.CommonConstruct {
93
93
  this.resolveCertificate();
94
94
  this.resolveSiteSecrets();
95
95
  this.resolveSiteDomainNames();
96
+ this.createSiteLogBucket();
96
97
  this.createVpc();
97
98
  this.createEcsPolicy();
98
99
  this.createEcsRole();
@@ -102,7 +103,6 @@ class SiteWithEcsBackend extends common_1.CommonConstruct {
102
103
  this.createEcsBuildArgs();
103
104
  this.createEcsContainerImage();
104
105
  this.createEcsService();
105
- this.createSiteLogBucket();
106
106
  this.createSiteOrigin();
107
107
  this.createSiteCloudfrontFunction();
108
108
  this.resolveSiteFunctionAssociations();
@@ -267,6 +267,7 @@ class SiteWithEcsBackend extends common_1.CommonConstruct {
267
267
  this.siteEcsListener = fargateService.listener;
268
268
  this.siteEcsLoadBalancer = fargateService.loadBalancer;
269
269
  this.siteEcsTargetGroup = fargateService.targetGroup;
270
+ fargateService.loadBalancer.logAccessLogs(this.siteLogBucket, 'alb');
270
271
  this.addCfnOutput(`${this.id}-loadBalancerArn`, this.siteEcsLoadBalancer.loadBalancerArn ?? '');
271
272
  this.addCfnOutput(`${this.id}-loadBalancerName`, this.siteEcsLoadBalancer.loadBalancerName ?? '');
272
273
  this.addCfnOutput(`${this.id}-loadBalancerFullName`, this.siteEcsLoadBalancer.loadBalancerFullName ?? '');
@@ -407,7 +407,7 @@ class IamManager {
407
407
  description: `Role for ${id} ECS Task execution`,
408
408
  inlinePolicies: { policy },
409
409
  managedPolicies: [
410
- iam.ManagedPolicy.fromManagedPolicyArn(scope, 'AmazonECSTaskExecutionRolePolicy', 'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy'),
410
+ iam.ManagedPolicy.fromManagedPolicyArn(scope, `${id}-AmazonECSTaskExecutionRolePolicy`, 'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy'),
411
411
  ],
412
412
  roleName: `${id}-${scope.props.stage}`,
413
413
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "8.19.0",
3
+ "version": "8.21.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -48,11 +48,11 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@types/lodash": "^4.14.191",
51
- "@types/node": "^18.13.0",
51
+ "@types/node": "^18.14.0",
52
52
  "app-root-path": "^3.1.0",
53
- "aws-cdk-lib": "^2.64.0",
54
- "aws-sdk": "^2.1316.0",
55
- "constructs": "^10.1.251",
53
+ "aws-cdk-lib": "^2.66.0",
54
+ "aws-sdk": "^2.1318.0",
55
+ "constructs": "^10.1.257",
56
56
  "lodash": "^4.17.21",
57
57
  "moment": "^2.29.4",
58
58
  "nconf": "^0.12.0",
@@ -62,8 +62,8 @@
62
62
  "devDependencies": {
63
63
  "@babel/plugin-proposal-class-properties": "^7.18.6",
64
64
  "@types/jest": "^29.4.0",
65
- "@typescript-eslint/eslint-plugin": "^5.52.0",
66
- "@typescript-eslint/parser": "^5.52.0",
65
+ "@typescript-eslint/eslint-plugin": "^5.53.0",
66
+ "@typescript-eslint/parser": "^5.53.0",
67
67
  "aws-cdk": "*",
68
68
  "babel-eslint": "^10.1.0",
69
69
  "better-docs": "^2.7.2",
@@ -75,9 +75,9 @@
75
75
  "eslint-plugin-import": "^2.27.5",
76
76
  "husky": "^8.0.3",
77
77
  "jest": "^29.4.3",
78
- "jest-extended": "^3.2.3",
78
+ "jest-extended": "^3.2.4",
79
79
  "jest-junit": "^15.0.0",
80
- "jsdoc": "^4.0.0",
80
+ "jsdoc": "^4.0.2",
81
81
  "jsdoc-babel": "^0.5.0",
82
82
  "jsdoc-mermaid": "^1.0.0",
83
83
  "lerna": "^6.5.1",
@@ -91,7 +91,7 @@
91
91
  "typescript": "4.9.5"
92
92
  },
93
93
  "optionalDependencies": {
94
- "@babel/core": "^7.20.12",
94
+ "@babel/core": "^7.21.00",
95
95
  "prop-types": "^15.8.1",
96
96
  "react": "^18.2.0",
97
97
  "react-dom": "^18.2.0"
@@ -80,6 +80,7 @@ export class SiteWithEcsBackend extends CommonConstruct {
80
80
  this.resolveCertificate()
81
81
  this.resolveSiteSecrets()
82
82
  this.resolveSiteDomainNames()
83
+ this.createSiteLogBucket()
83
84
  this.createVpc()
84
85
  this.createEcsPolicy()
85
86
  this.createEcsRole()
@@ -89,7 +90,6 @@ export class SiteWithEcsBackend extends CommonConstruct {
89
90
  this.createEcsBuildArgs()
90
91
  this.createEcsContainerImage()
91
92
  this.createEcsService()
92
- this.createSiteLogBucket()
93
93
  this.createSiteOrigin()
94
94
  this.createSiteCloudfrontFunction()
95
95
  this.resolveSiteFunctionAssociations()
@@ -292,6 +292,8 @@ export class SiteWithEcsBackend extends CommonConstruct {
292
292
  this.siteEcsLoadBalancer = fargateService.loadBalancer
293
293
  this.siteEcsTargetGroup = fargateService.targetGroup
294
294
 
295
+ fargateService.loadBalancer.logAccessLogs(this.siteLogBucket, 'alb')
296
+
295
297
  this.addCfnOutput(`${this.id}-loadBalancerArn`, this.siteEcsLoadBalancer.loadBalancerArn ?? '')
296
298
  this.addCfnOutput(`${this.id}-loadBalancerName`, this.siteEcsLoadBalancer.loadBalancerName ?? '')
297
299
  this.addCfnOutput(`${this.id}-loadBalancerFullName`, this.siteEcsLoadBalancer.loadBalancerFullName ?? '')
@@ -428,7 +428,7 @@ export class IamManager {
428
428
  managedPolicies: [
429
429
  iam.ManagedPolicy.fromManagedPolicyArn(
430
430
  scope,
431
- 'AmazonECSTaskExecutionRolePolicy',
431
+ `${id}-AmazonECSTaskExecutionRolePolicy`,
432
432
  'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy'
433
433
  ),
434
434
  ],