This repository was archived by the owner on Oct 21, 2024. It is now read-only.
File tree 1 file changed +13
-16
lines changed
platform/src/components/aws
1 file changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -624,22 +624,19 @@ export class Service extends Component implements Link.Linkable {
624
624
taskRoleArn : taskRole . arn ,
625
625
volumes : output ( containers ) . apply ( ( containers ) => {
626
626
const uniqueFileSystemIds : Set < string > = new Set ( ) ;
627
- return containers
628
- . flatMap (
629
- ( container ) =>
630
- container . volumes ?. map ( ( volume ) => {
631
- if ( uniqueFileSystemIds . has ( volume . efs ) ) return ;
632
- uniqueFileSystemIds . add ( volume . efs ) ;
633
- return {
634
- name : volume . efs ,
635
- efsVolumeConfiguration : {
636
- fileSystemId : volume . efs ,
637
- transitEncryption : "ENABLED" ,
638
- } ,
639
- } ;
640
- } ) ,
641
- )
642
- . filter ( ( v ) => ! ! v ) ;
627
+ return containers . flatMap ( ( container ) =>
628
+ ( container . volumes ?? [ ] ) . flatMap ( ( volume ) => {
629
+ if ( uniqueFileSystemIds . has ( volume . efs ) ) return [ ] ;
630
+ uniqueFileSystemIds . add ( volume . efs ) ;
631
+ return {
632
+ name : volume . efs ,
633
+ efsVolumeConfiguration : {
634
+ fileSystemId : volume . efs ,
635
+ transitEncryption : "ENABLED" ,
636
+ } ,
637
+ } ;
638
+ } ) ,
639
+ ) ;
643
640
} ) ,
644
641
containerDefinitions : $jsonStringify (
645
642
all ( [
You can’t perform that action at this time.
0 commit comments