dcl-ops-lib 9.3.0 → 9.3.1

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.
@@ -39,7 +39,10 @@ async function exposeNlbService(name, domain, port, protocol, vpcId, healthCheck
39
39
  ...DEFAULT_NLB_HEALTHCHECK,
40
40
  ...healthCheck,
41
41
  };
42
- const targetGroup = new aws.lb.TargetGroup(`nlb-tg-${name}`, {
42
+ // AWS target group names max 32 chars (base + dash + 7 random = base ≤ 24).
43
+ // "ntg-" (4) + last 20 chars of name = 24 max.
44
+ const tgSlug = name.slice(-20);
45
+ const targetGroup = new aws.lb.TargetGroup(`ntg-${tgSlug}`, {
43
46
  port,
44
47
  protocol: protocol.toUpperCase(),
45
48
  targetType: "ip",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "9.3.0",
3
+ "version": "9.3.1",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "clean": "rm *.d.ts *.js *.js.map"