dcl-ops-lib 6.8.7 → 6.8.8
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 +3 -4
- package/package.json +1 -1
package/createFargateTask.js
CHANGED
|
@@ -379,9 +379,8 @@ function createInternalService(config) {
|
|
|
379
379
|
return service;
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
|
-
function setAutoscaling(
|
|
383
|
-
const
|
|
384
|
-
const ecsTarget = new aws.appautoscaling.Target(`ecs-target-${taskUniqueIdentifier}`, {
|
|
382
|
+
function setAutoscaling(_, config) {
|
|
383
|
+
const ecsTarget = new aws.appautoscaling.Target(`ecs-target-asset-bundle-converter-dev`, {
|
|
385
384
|
maxCapacity: config.maxCapacity,
|
|
386
385
|
minCapacity: config.desiredCount,
|
|
387
386
|
resourceId: 'service/dev-main/asset-bundle-converter-blue-ad2fc4b',
|
|
@@ -404,7 +403,7 @@ function setAutoscaling(service, config) {
|
|
|
404
403
|
if (config.metricName === "ApproximateNumberOfMessagesVisible") {
|
|
405
404
|
TTS_CustomizedMetricSpecification = CSM_ApproximateNumberOfMessagesVisible;
|
|
406
405
|
}
|
|
407
|
-
return new aws.appautoscaling.Policy(`ecs-autoscaling-policy
|
|
406
|
+
return new aws.appautoscaling.Policy(`ecs-autoscaling-policy-asset-bundle-converter-dev`, {
|
|
408
407
|
policyType: "TargetTrackingScaling",
|
|
409
408
|
resourceId: ecsTarget.resourceId,
|
|
410
409
|
scalableDimension: ecsTarget.scalableDimension,
|