dcl-ops-lib 6.6.1 → 6.7.1
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 -0
- package/createFargateTask.js +7 -2
- package/package.json +1 -1
package/createFargateTask.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export type FargateTaskOptions = {
|
|
|
23
23
|
cluster?: aws.ecs.Cluster | string;
|
|
24
24
|
healthCheck?: Partial<aws.types.input.alb.TargetGroupHealthCheck>;
|
|
25
25
|
healthCheckContainer?: HealthCheck;
|
|
26
|
+
ephemeralStorageInGB?: number;
|
|
26
27
|
desiredCount?: number;
|
|
27
28
|
memoryReservation?: number;
|
|
28
29
|
cpuReservation?: number;
|
|
@@ -101,6 +102,7 @@ export type InternalServiceOptions = {
|
|
|
101
102
|
securityGroups?: (string | pulumi.Output<string>)[];
|
|
102
103
|
ignoreServiceDiscovery?: boolean;
|
|
103
104
|
serviceDiscoveryPort?: number;
|
|
105
|
+
ephemeralStorageInGB?: number;
|
|
104
106
|
desiredCount?: number;
|
|
105
107
|
executionRole?: aws.iam.Role;
|
|
106
108
|
taskRole?: aws.iam.Role;
|
package/createFargateTask.js
CHANGED
|
@@ -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, 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, } = options;
|
|
119
119
|
if (undefined === essential) {
|
|
120
120
|
essential = true;
|
|
121
121
|
}
|
|
@@ -210,6 +210,7 @@ function createFargateTask(serviceName, dockerImage, dockerListeningPort, enviro
|
|
|
210
210
|
serviceName,
|
|
211
211
|
cluster,
|
|
212
212
|
desiredCount,
|
|
213
|
+
ephemeralStorageInGB,
|
|
213
214
|
executionRole,
|
|
214
215
|
taskRole,
|
|
215
216
|
assignPublicIp: !dontAssignPublicIp,
|
|
@@ -262,6 +263,7 @@ function createFargateTask(serviceName, dockerImage, dockerListeningPort, enviro
|
|
|
262
263
|
serviceName,
|
|
263
264
|
cluster,
|
|
264
265
|
desiredCount,
|
|
266
|
+
ephemeralStorageInGB,
|
|
265
267
|
executionRole,
|
|
266
268
|
taskRole,
|
|
267
269
|
assignPublicIp: !dontAssignPublicIp,
|
|
@@ -295,7 +297,7 @@ function createFargateTask(serviceName, dockerImage, dockerListeningPort, enviro
|
|
|
295
297
|
function createInternalService(config) {
|
|
296
298
|
return __awaiter(this, void 0, void 0, function* () {
|
|
297
299
|
var _a, _b;
|
|
298
|
-
let { serviceName, cluster, securityGroups, ignoreServiceDiscovery, serviceDiscoveryPort, desiredCount, executionRole, taskRole, containerInfo, assignPublicIp, dependsOn, volumes, team, targetGroups, runtimePlatform } = config;
|
|
300
|
+
let { serviceName, cluster, securityGroups, ignoreServiceDiscovery, serviceDiscoveryPort, desiredCount, executionRole, taskRole, containerInfo, assignPublicIp, dependsOn, volumes, team, targetGroups, runtimePlatform, ephemeralStorageInGB } = config;
|
|
299
301
|
if (!desiredCount)
|
|
300
302
|
desiredCount = 1;
|
|
301
303
|
assignPublicIp = !!assignPublicIp;
|
|
@@ -327,6 +329,9 @@ function createInternalService(config) {
|
|
|
327
329
|
taskRoleArn: taskRole === null || taskRole === void 0 ? void 0 : taskRole.arn,
|
|
328
330
|
tags: { ServiceName: serviceName, Team: team },
|
|
329
331
|
containerDefinitions: pulumi.jsonStringify([Object.assign(Object.assign({}, containerInfo), { logConfiguration: (0, exports.getDefaultLogs)(serviceName, logGroup) })]),
|
|
332
|
+
ephemeralStorage: !!ephemeralStorageInGB ? {
|
|
333
|
+
sizeInGib: ephemeralStorageInGB
|
|
334
|
+
} : undefined,
|
|
330
335
|
cpu: (_a = containerInfo.cpu) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
331
336
|
memory: (_b = containerInfo.memoryReservation) === null || _b === void 0 ? void 0 : _b.toString(),
|
|
332
337
|
runtimePlatform: runtimePlatform,
|