@@ -219,22 +219,11 @@ export class EfsFileSystem extends EfsFileSystemBase {
219
219
*/
220
220
public readonly connections : ec2 . Connections ;
221
221
222
- /**
223
- * Identifiers of the mount targets
224
- */
225
- public readonly mountTargetIdentifiers : string [ ] = [ ] ;
226
-
227
- /**
228
- * IP Addresses of the mount targets
229
- */
230
- public readonly mountTargetIpAddress : string [ ] = [ ] ;
231
-
232
222
/**
233
223
* @attribute
234
224
*/
235
225
public readonly fileSystemId : string ;
236
226
237
- private readonly mountTargets : CfnMountTarget [ ] = [ ] ;
238
227
private readonly efsFileSystem : CfnFileSystem ;
239
228
240
229
/**
@@ -281,16 +270,13 @@ export class EfsFileSystem extends EfsFileSystemBase {
281
270
// We now have to create the mount target for each of the mentioned subnet
282
271
let mountTargetCount = 0 ;
283
272
subnets . subnetIds . forEach ( ( subnetId : string ) => {
284
- const efsMountTarget = new CfnMountTarget ( this ,
273
+ new CfnMountTarget ( this ,
285
274
"EfsMountTarget" + ( ++ mountTargetCount ) ,
286
275
{
287
276
fileSystemId : this . fileSystemId ,
288
277
securityGroups : Array . of ( securityGroup . securityGroupId ) ,
289
278
subnetId
290
279
} ) ;
291
- this . mountTargets . push ( efsMountTarget ) ;
292
- this . mountTargetIdentifiers . push ( efsMountTarget . ref ) ;
293
- this . mountTargetIpAddress . push ( efsMountTarget . attrIpAddress ) ;
294
280
} ) ;
295
281
}
296
282
}
0 commit comments