dcl-ops-lib 6.8.5 → 6.8.7
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.d.ts +2 -2
- package/createFargateTask.js +2 -4
- package/package.json +1 -1
package/createFargateTask.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export type FargateTaskOptions = {
|
|
|
58
58
|
maxCapacity: number;
|
|
59
59
|
metricName: string;
|
|
60
60
|
targetValue: number;
|
|
61
|
-
metricDimensionValue:
|
|
61
|
+
metricDimensionValue: string;
|
|
62
62
|
statistic?: "Average" | "Minimum" | "Maximum";
|
|
63
63
|
scaleOutCooldown?: number;
|
|
64
64
|
scaleInCooldown?: number;
|
|
@@ -117,7 +117,7 @@ export type InternalServiceOptions = {
|
|
|
117
117
|
maxCapacity: number;
|
|
118
118
|
metricName: string;
|
|
119
119
|
targetValue: number;
|
|
120
|
-
metricDimensionValue:
|
|
120
|
+
metricDimensionValue: string;
|
|
121
121
|
statistic?: "Average" | "Minimum" | "Maximum";
|
|
122
122
|
scaleOutCooldown?: number;
|
|
123
123
|
scaleInCooldown?: number;
|
package/createFargateTask.js
CHANGED
|
@@ -381,12 +381,10 @@ function createInternalService(config) {
|
|
|
381
381
|
}
|
|
382
382
|
function setAutoscaling(service, config) {
|
|
383
383
|
const taskUniqueIdentifier = `${service.name}-${domain_1.env}`;
|
|
384
|
-
// resolve the Output<string> before using it
|
|
385
|
-
const stringifiedMetricDimensionValue = config.metricDimensionValue;
|
|
386
384
|
const ecsTarget = new aws.appautoscaling.Target(`ecs-target-${taskUniqueIdentifier}`, {
|
|
387
385
|
maxCapacity: config.maxCapacity,
|
|
388
386
|
minCapacity: config.desiredCount,
|
|
389
|
-
resourceId:
|
|
387
|
+
resourceId: 'service/dev-main/asset-bundle-converter-blue-ad2fc4b',
|
|
390
388
|
scalableDimension: "ecs:service:DesiredCount",
|
|
391
389
|
serviceNamespace: "ecs",
|
|
392
390
|
});
|
|
@@ -396,7 +394,7 @@ function setAutoscaling(service, config) {
|
|
|
396
394
|
dimensions: [
|
|
397
395
|
{
|
|
398
396
|
name: "QueueName",
|
|
399
|
-
value:
|
|
397
|
+
value: config.metricDimensionValue
|
|
400
398
|
},
|
|
401
399
|
],
|
|
402
400
|
statistic: config.statistic,
|