@gradientedge/cdk-utils 7.14.0 → 7.16.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.
@@ -214,14 +214,13 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
214
214
  'application/json': [
215
215
  '#set($context.requestOverride.header.X-Amz-Target = "AWSEvents.PutEvents")',
216
216
  '#set($context.requestOverride.header.Content-Type = "application/x-amz-json-1.1")',
217
- "#set($inputRoot = $input.path('$'))",
218
217
  `{
219
218
  "Entries": [
220
219
  {
221
220
  "EventBusName": "${this.apiEvent.eventBus.eventBusName}",
222
221
  "Source": "api-to-eventbridge-target",
223
222
  "DetailType": "$util.escapeJavaScript($context.domainName)$util.escapeJavaScript($context.resourcePath)",
224
- "Detail": "$util.escapeJavaScript($input.json('$'))"
223
+ "Detail": "$util.escapeJavaScript($input.body).replaceAll("\\'","'")"
225
224
  }
226
225
  ]
227
226
  }`,
@@ -267,6 +267,10 @@ 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
+ this.addCfnOutput(`${this.id}-loadBalancerArn`, this.siteEcsLoadBalancer.loadBalancerArn ?? '');
271
+ this.addCfnOutput(`${this.id}-loadBalancerName`, this.siteEcsLoadBalancer.loadBalancerName ?? '');
272
+ this.addCfnOutput(`${this.id}-loadBalancerFullName`, this.siteEcsLoadBalancer.loadBalancerFullName ?? '');
273
+ this.addCfnOutput(`${this.id}-loadBalancerDnsName`, this.siteEcsLoadBalancer.loadBalancerDnsName ?? '');
270
274
  }
271
275
  /**
272
276
  * Method to create log bucket for site distribution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "7.14.0",
3
+ "version": "7.16.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -234,14 +234,13 @@ export class ApiToEventBridgeTarget extends CommonConstruct {
234
234
  'application/json': [
235
235
  '#set($context.requestOverride.header.X-Amz-Target = "AWSEvents.PutEvents")',
236
236
  '#set($context.requestOverride.header.Content-Type = "application/x-amz-json-1.1")',
237
- "#set($inputRoot = $input.path('$'))",
238
237
  `{
239
238
  "Entries": [
240
239
  {
241
240
  "EventBusName": "${this.apiEvent.eventBus.eventBusName}",
242
241
  "Source": "api-to-eventbridge-target",
243
242
  "DetailType": "$util.escapeJavaScript($context.domainName)$util.escapeJavaScript($context.resourcePath)",
244
- "Detail": "$util.escapeJavaScript($input.json('$'))"
243
+ "Detail": "$util.escapeJavaScript($input.body).replaceAll("\\'","'")"
245
244
  }
246
245
  ]
247
246
  }`,
@@ -291,6 +291,11 @@ export class SiteWithEcsBackend extends CommonConstruct {
291
291
  this.siteEcsListener = fargateService.listener
292
292
  this.siteEcsLoadBalancer = fargateService.loadBalancer
293
293
  this.siteEcsTargetGroup = fargateService.targetGroup
294
+
295
+ this.addCfnOutput(`${this.id}-loadBalancerArn`, this.siteEcsLoadBalancer.loadBalancerArn ?? '')
296
+ this.addCfnOutput(`${this.id}-loadBalancerName`, this.siteEcsLoadBalancer.loadBalancerName ?? '')
297
+ this.addCfnOutput(`${this.id}-loadBalancerFullName`, this.siteEcsLoadBalancer.loadBalancerFullName ?? '')
298
+ this.addCfnOutput(`${this.id}-loadBalancerDnsName`, this.siteEcsLoadBalancer.loadBalancerDnsName ?? '')
294
299
  }
295
300
 
296
301
  /**