@gradientedge/cdk-utils 8.40.0 → 8.41.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.
|
@@ -287,6 +287,13 @@ class SiteWithEcsBackend extends common_1.CommonConstruct {
|
|
|
287
287
|
authorizationConfig: this.props.siteFileSystem.authorizationConfig,
|
|
288
288
|
},
|
|
289
289
|
});
|
|
290
|
+
if (this.props.siteTask.mountPoints && this.props.siteTask.mountPoints.length > 0) {
|
|
291
|
+
this.props.siteTask.mountPoints.forEach(mountPoint => this.siteEcsTaskDefinition.defaultContainer?.addMountPoints({
|
|
292
|
+
containerPath: mountPoint.containerPath,
|
|
293
|
+
readOnly: mountPoint.readOnly,
|
|
294
|
+
sourceVolume: `${this.id}-fs`,
|
|
295
|
+
}));
|
|
296
|
+
}
|
|
290
297
|
}
|
|
291
298
|
this.addCfnOutput(`${this.id}-loadBalancerArn`, this.siteEcsLoadBalancer.loadBalancerArn ?? '');
|
|
292
299
|
this.addCfnOutput(`${this.id}-loadBalancerName`, this.siteEcsLoadBalancer.loadBalancerName ?? '');
|
|
@@ -628,6 +628,7 @@ export interface EcsTaskProps extends ecs.TaskDefinitionProps {
|
|
|
628
628
|
export interface EcsApplicationLoadBalancedFargateServiceProps extends ecsPatterns.ApplicationLoadBalancedFargateServiceProps {
|
|
629
629
|
healthCheck?: HealthCheck;
|
|
630
630
|
logging?: ecs.AwsLogDriverProps;
|
|
631
|
+
mountPoints?: ecs.MountPoint[];
|
|
631
632
|
}
|
|
632
633
|
/**
|
|
633
634
|
* @category cdk-utils.eks-manager
|
package/package.json
CHANGED
|
@@ -322,6 +322,16 @@ export class SiteWithEcsBackend extends CommonConstruct {
|
|
|
322
322
|
authorizationConfig: this.props.siteFileSystem.authorizationConfig,
|
|
323
323
|
},
|
|
324
324
|
})
|
|
325
|
+
|
|
326
|
+
if (this.props.siteTask.mountPoints && this.props.siteTask.mountPoints.length > 0) {
|
|
327
|
+
this.props.siteTask.mountPoints.forEach(mountPoint =>
|
|
328
|
+
this.siteEcsTaskDefinition.defaultContainer?.addMountPoints({
|
|
329
|
+
containerPath: mountPoint.containerPath,
|
|
330
|
+
readOnly: mountPoint.readOnly,
|
|
331
|
+
sourceVolume: `${this.id}-fs`,
|
|
332
|
+
})
|
|
333
|
+
)
|
|
334
|
+
}
|
|
325
335
|
}
|
|
326
336
|
|
|
327
337
|
this.addCfnOutput(`${this.id}-loadBalancerArn`, this.siteEcsLoadBalancer.loadBalancerArn ?? '')
|