@gradientedge/cdk-utils 8.19.0 → 8.20.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.
@@ -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 ?? '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "8.19.0",
3
+ "version": "8.20.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -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 ?? '')