dcl-ops-lib 6.6.0 → 6.7.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.
- package/createFargateTask.d.ts +8 -2
- package/createFargateTask.js +5 -2
- package/package.json +1 -1
package/createFargateTask.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ export type FargateTaskOptions = {
|
|
|
23
23
|
cluster?: aws.ecs.Cluster | string;
|
|
24
24
|
healthCheck?: Partial<aws.types.input.alb.TargetGroupHealthCheck>;
|
|
25
25
|
healthCheckContainer?: HealthCheck;
|
|
26
|
+
ephemeralStorage?: {
|
|
27
|
+
sizeInGiB: number;
|
|
28
|
+
};
|
|
26
29
|
desiredCount?: number;
|
|
27
30
|
memoryReservation?: number;
|
|
28
31
|
cpuReservation?: number;
|
|
@@ -57,7 +60,7 @@ export type FargateTaskOptions = {
|
|
|
57
60
|
maxCapacity: number;
|
|
58
61
|
metricName: string;
|
|
59
62
|
targetValue: number;
|
|
60
|
-
metricDimensionName: string
|
|
63
|
+
metricDimensionName: pulumi.Output<string>;
|
|
61
64
|
statistic?: "Average" | "Minimum" | "Maximum";
|
|
62
65
|
scaleOutCooldown?: number;
|
|
63
66
|
scaleInCooldown?: number;
|
|
@@ -101,6 +104,9 @@ export type InternalServiceOptions = {
|
|
|
101
104
|
securityGroups?: (string | pulumi.Output<string>)[];
|
|
102
105
|
ignoreServiceDiscovery?: boolean;
|
|
103
106
|
serviceDiscoveryPort?: number;
|
|
107
|
+
ephemeralStorage?: {
|
|
108
|
+
sizeInGiB: number;
|
|
109
|
+
};
|
|
104
110
|
desiredCount?: number;
|
|
105
111
|
executionRole?: aws.iam.Role;
|
|
106
112
|
taskRole?: aws.iam.Role;
|
|
@@ -115,7 +121,7 @@ export type InternalServiceOptions = {
|
|
|
115
121
|
maxCapacity: number;
|
|
116
122
|
metricName: string;
|
|
117
123
|
targetValue: number;
|
|
118
|
-
metricDimensionName: string
|
|
124
|
+
metricDimensionName: pulumi.Output<string>;
|
|
119
125
|
statistic?: "Average" | "Minimum" | "Maximum";
|
|
120
126
|
scaleOutCooldown?: number;
|
|
121
127
|
scaleInCooldown?: number;
|
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, ephemeralStorage, 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
|
+
ephemeralStorage,
|
|
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
|
+
ephemeralStorage,
|
|
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, ephemeralStorage } = config;
|
|
299
301
|
if (!desiredCount)
|
|
300
302
|
desiredCount = 1;
|
|
301
303
|
assignPublicIp = !!assignPublicIp;
|
|
@@ -327,6 +329,7 @@ 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: !!ephemeralStorage ? ephemeralStorage : undefined,
|
|
330
333
|
cpu: (_a = containerInfo.cpu) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
331
334
|
memory: (_b = containerInfo.memoryReservation) === null || _b === void 0 ? void 0 : _b.toString(),
|
|
332
335
|
runtimePlatform: runtimePlatform,
|