dcl-ops-lib 6.0.20 → 6.1.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.
@@ -50,6 +50,7 @@ export type FargateTaskOptions = {
50
50
  deregistrationDelay?: pulumi.Input<number>;
51
51
  mountPoints?: aws.ecs.MountPoint[];
52
52
  repositoryCredentials?: aws.ecs.RepositoryCredentials;
53
+ runtimePlatform?: aws.types.input.ecs.TaskDefinitionRuntimePlatform;
53
54
  };
54
55
  /**
55
56
  *
@@ -97,5 +98,6 @@ export type InternalServiceOptions = {
97
98
  volumes?: pulumi.Input<aws.types.input.ecs.TaskDefinitionVolume[]>;
98
99
  team: string;
99
100
  targetGroups: aws.alb.TargetGroup[];
101
+ runtimePlatform?: aws.types.input.ecs.TaskDefinitionRuntimePlatform;
100
102
  };
101
103
  export declare function createInternalService(config: InternalServiceOptions): Promise<import("@pulumi/aws/ecs/service").Service>;
@@ -230,7 +230,8 @@ function createFargateTask(serviceName, dockerImage, dockerListeningPort, enviro
230
230
  dependsOn,
231
231
  volumes,
232
232
  team,
233
- targetGroups
233
+ targetGroups,
234
+ runtimePlatform: options.runtimePlatform
234
235
  });
235
236
  return {
236
237
  service,
@@ -277,7 +278,8 @@ function createFargateTask(serviceName, dockerImage, dockerListeningPort, enviro
277
278
  dependsOn,
278
279
  volumes,
279
280
  team,
280
- targetGroups
281
+ targetGroups,
282
+ runtimePlatform: options.runtimePlatform
281
283
  });
282
284
  return { endpoint: `https://${hostname}/`, service, exposed };
283
285
  });
@@ -286,7 +288,7 @@ exports.createFargateTask = createFargateTask;
286
288
  function createInternalService(config) {
287
289
  var _a, _b;
288
290
  return __awaiter(this, void 0, void 0, function* () {
289
- let { serviceName, cluster, securityGroups, ignoreServiceDiscovery, serviceDiscoveryPort, desiredCount, executionRole, taskRole, containerInfo, assignPublicIp, dependsOn, volumes, team, targetGroups } = config;
291
+ let { serviceName, cluster, securityGroups, ignoreServiceDiscovery, serviceDiscoveryPort, desiredCount, executionRole, taskRole, containerInfo, assignPublicIp, dependsOn, volumes, team, targetGroups, runtimePlatform } = config;
290
292
  if (!desiredCount)
291
293
  desiredCount = 1;
292
294
  assignPublicIp = !!assignPublicIp;
@@ -320,6 +322,7 @@ function createInternalService(config) {
320
322
  containerDefinitions: pulumi.jsonStringify([Object.assign(Object.assign({}, containerInfo), { logConfiguration: (0, exports.getDefaultLogs)(serviceName, logGroup) })]),
321
323
  cpu: (_a = containerInfo.cpu) === null || _a === void 0 ? void 0 : _a.toString(),
322
324
  memory: (_b = containerInfo.memoryReservation) === null || _b === void 0 ? void 0 : _b.toString(),
325
+ runtimePlatform: runtimePlatform,
323
326
  requiresCompatibilities: ["FARGATE"],
324
327
  networkMode: "awsvpc",
325
328
  volumes: volumes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "6.0.20",
3
+ "version": "6.1.0",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "clean": "rm *.d.ts *.js *.js.map"