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.
- package/createFargateTask.js +2 -3
- package/package.json +1 -1
package/createFargateTask.js
CHANGED
|
@@ -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(
|
|
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:
|
|
385
|
+
resourceId: service.id,
|
|
387
386
|
scalableDimension: "ecs:service:DesiredCount",
|
|
388
387
|
serviceNamespace: "ecs",
|
|
389
388
|
});
|