dcl-ops-lib 6.9.0 → 6.10.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.
@@ -372,18 +372,17 @@ function createInternalService(config) {
372
372
  })),
373
373
  ],
374
374
  }, Object.assign(Object.assign({}, extraOpts), { dependsOn }));
375
- console.log("Should set-up autoscaling", { should: !!appAutoscaling });
376
375
  if (!!appAutoscaling) {
377
376
  setAutoscaling(service, Object.assign(Object.assign({}, appAutoscaling), { desiredCount }));
378
377
  }
379
378
  return service;
380
379
  });
381
380
  }
382
- function setAutoscaling(_, config) {
381
+ function setAutoscaling(service, config) {
383
382
  const ecsTarget = new aws.appautoscaling.Target(`ecs-target-asset-bundle-windows-converter-dev`, {
384
383
  maxCapacity: config.maxCapacity,
385
384
  minCapacity: config.desiredCount,
386
- resourceId: 'service/dev-main/asset-bundle-converter-windows-blue-a52ecaa',
385
+ resourceId: service.id,
387
386
  scalableDimension: "ecs:service:DesiredCount",
388
387
  serviceNamespace: "ecs",
389
388
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "6.9.0",
3
+ "version": "6.10.0",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "clean": "rm *.d.ts *.js *.js.map"