dcl-ops-lib 6.8.0 → 6.8.2

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
- metricDimensionName: pulumi.Output<string>;
61
+ metricDimensionValue: pulumi.Output<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
- metricDimensionName: pulumi.Output<string>;
120
+ metricDimensionValue: pulumi.Output<string>;
121
121
  statistic?: "Average" | "Minimum" | "Maximum";
122
122
  scaleOutCooldown?: number;
123
123
  scaleInCooldown?: number;
@@ -115,7 +115,7 @@ function getFargateTaskRole(name, policyArnNamedMap) {
115
115
  */
116
116
  function createFargateTask(serviceName, dockerImage, dockerListeningPort, environment, hostname, options) {
117
117
  return __awaiter(this, void 0, void 0, function* () {
118
- let { healthCheck, healthCheckContainer, essential, dontExpose, securityGroups, cluster, memoryReservation, command, version, ephemeralStorageInGB, desiredCount, cpuReservation, extraPortMappings, extraALBMappings, executionRolePolicies, taskRolePolicies, ignoreServiceDiscovery, secrets, metrics, dontAssignPublicIp, dependsOn, volumes, deregistrationDelay, mountPoints, repositoryCredentials, team, } = options;
118
+ let { healthCheck, healthCheckContainer, essential, dontExpose, securityGroups, cluster, memoryReservation, command, version, ephemeralStorageInGB, desiredCount, cpuReservation, extraPortMappings, extraALBMappings, executionRolePolicies, taskRolePolicies, ignoreServiceDiscovery, secrets, metrics, dontAssignPublicIp, dependsOn, volumes, deregistrationDelay, mountPoints, repositoryCredentials, team, appAutoscaling } = options;
119
119
  if (undefined === essential) {
120
120
  essential = true;
121
121
  }
@@ -236,7 +236,8 @@ function createFargateTask(serviceName, dockerImage, dockerListeningPort, enviro
236
236
  volumes,
237
237
  team,
238
238
  targetGroups,
239
- runtimePlatform: options.runtimePlatform
239
+ runtimePlatform: options.runtimePlatform,
240
+ appAutoscaling
240
241
  });
241
242
  return {
242
243
  service,
@@ -289,7 +290,8 @@ function createFargateTask(serviceName, dockerImage, dockerListeningPort, enviro
289
290
  volumes,
290
291
  team,
291
292
  targetGroups,
292
- runtimePlatform: options.runtimePlatform
293
+ runtimePlatform: options.runtimePlatform,
294
+ appAutoscaling
293
295
  });
294
296
  return { endpoint: `https://${hostname}/`, service, exposed };
295
297
  });
@@ -383,7 +385,7 @@ function setAutoscaling(service, config) {
383
385
  dimensions: [
384
386
  {
385
387
  name: "QueueName",
386
- value: config.metricDimensionName
388
+ value: config.metricDimensionValue.apply((_) => _),
387
389
  },
388
390
  ],
389
391
  statistic: config.statistic,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "6.8.0",
3
+ "version": "6.8.2",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "clean": "rm *.d.ts *.js *.js.map"