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.
@@ -58,7 +58,7 @@ export type FargateTaskOptions = {
58
58
  maxCapacity: number;
59
59
  metricName: string;
60
60
  targetValue: number;
61
- metricDimensionValue: pulumi.Output<string>;
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: pulumi.Output<string>;
120
+ metricDimensionValue: string;
121
121
  statistic?: "Average" | "Minimum" | "Maximum";
122
122
  scaleOutCooldown?: number;
123
123
  scaleInCooldown?: number;
@@ -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: pulumi.interpolate `service/${service.cluster}/${service.name}`,
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: stringifiedMetricDimensionValue,
397
+ value: config.metricDimensionValue
400
398
  },
401
399
  ],
402
400
  statistic: config.statistic,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "6.8.5",
3
+ "version": "6.8.7",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "clean": "rm *.d.ts *.js *.js.map"