dcl-ops-lib 9.1.0 → 9.2.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.
@@ -80,6 +80,7 @@ export type FargateTaskOptions = {
80
80
  schedule: string;
81
81
  }[];
82
82
  };
83
+ enableExecuteCommand?: boolean;
83
84
  };
84
85
  /**
85
86
  *
@@ -155,5 +156,6 @@ export type InternalServiceOptions = {
155
156
  schedule: string;
156
157
  }[];
157
158
  };
159
+ enableExecuteCommand?: boolean;
158
160
  };
159
161
  export declare function createInternalService(config: InternalServiceOptions): Promise<import("@pulumi/aws/ecs/service").Service>;
@@ -102,7 +102,7 @@ exports.getFargateTaskRole = getFargateTaskRole;
102
102
  * @param options.appAutoscaling Configuration for autoscaling
103
103
  */
104
104
  async function createFargateTask(serviceName, dockerImage, dockerListeningPort, environment, hostname, options) {
105
- let { healthCheck, healthCheckContainer, essential, dontExpose, securityGroups, cluster, memoryReservation, command, version, ephemeralStorageInGB, desiredCount, cpuReservation, extraPortMappings, extraALBMappings, executionRolePolicies, taskRolePolicies, ignoreServiceDiscovery, secrets, metrics, forceNewDeployment, dontAssignPublicIp, dependsOn, volumes, deregistrationDelay, mountPoints, repositoryCredentials, team, appAutoscaling, } = options;
105
+ let { healthCheck, healthCheckContainer, essential, dontExpose, securityGroups, cluster, memoryReservation, command, version, ephemeralStorageInGB, desiredCount, cpuReservation, extraPortMappings, extraALBMappings, executionRolePolicies, taskRolePolicies, ignoreServiceDiscovery, secrets, metrics, forceNewDeployment, dontAssignPublicIp, dependsOn, volumes, deregistrationDelay, mountPoints, repositoryCredentials, team, appAutoscaling, enableExecuteCommand, } = options;
106
106
  if (undefined === essential) {
107
107
  essential = true;
108
108
  }
@@ -228,6 +228,7 @@ async function createFargateTask(serviceName, dockerImage, dockerListeningPort,
228
228
  targetGroups,
229
229
  runtimePlatform: options.runtimePlatform,
230
230
  appAutoscaling,
231
+ enableExecuteCommand,
231
232
  });
232
233
  return {
233
234
  service,
@@ -286,12 +287,13 @@ async function createFargateTask(serviceName, dockerImage, dockerListeningPort,
286
287
  targetGroups,
287
288
  runtimePlatform: options.runtimePlatform,
288
289
  appAutoscaling,
290
+ enableExecuteCommand,
289
291
  });
290
292
  return { endpoint: `https://${hostname}/`, service, exposed };
291
293
  }
292
294
  exports.createFargateTask = createFargateTask;
293
295
  async function createInternalService(config) {
294
- let { serviceName, cluster, securityGroups, ignoreServiceDiscovery, serviceDiscoveryPort, desiredCount, executionRole, taskRole, containerInfo, assignPublicIp, dependsOn, volumes, team, targetGroups, runtimePlatform, ephemeralStorageInGB, appAutoscaling, forceNewDeployment, } = config;
296
+ let { serviceName, cluster, securityGroups, ignoreServiceDiscovery, serviceDiscoveryPort, desiredCount, executionRole, taskRole, containerInfo, assignPublicIp, dependsOn, volumes, team, targetGroups, runtimePlatform, ephemeralStorageInGB, appAutoscaling, forceNewDeployment, enableExecuteCommand, } = config;
295
297
  if (!desiredCount && desiredCount !== 0)
296
298
  desiredCount = 1;
297
299
  assignPublicIp = !!assignPublicIp;
@@ -334,6 +336,7 @@ async function createInternalService(config) {
334
336
  });
335
337
  const service = new aws.ecs.Service((0, stack_1.getStackScopedName)(serviceName), {
336
338
  cluster: await getClusterInstance(cluster),
339
+ enableExecuteCommand: !!enableExecuteCommand,
337
340
  tags: (0, fargateHelpers_1.createResourceTags)(serviceName, team, { StackId: (0, stack_1.getStackId)() }),
338
341
  networkConfiguration: {
339
342
  subnets: await (0, network_1.getPrivateSubnetIds)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "9.1.0",
3
+ "version": "9.2.0",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "clean": "rm *.d.ts *.js *.js.map"