Skip to content

Commit

Permalink
Update efs-file-system.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Pizzini <lpizzini7@gmail.com>
  • Loading branch information
badmintoncryer and lpizzinidev committed Mar 5, 2024
1 parent a16bbbe commit f3089ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/aws-cdk-lib/aws-efs/lib/efs-file-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,7 @@ export class FileSystem extends FileSystemBase {
{
fileSystemId: destinationFileSystem?.fileSystemId,
kmsKeyId: kmsKey?.keyArn,
region: region ??
// if destinationFileSystem is set, specify the region of the destination file system
(destinationFileSystem ? destinationFileSystem.env.region : Stack.of(this).region),
region: destinationFileSystem ? destinationFileSystem.env.region : (region ?? Stack.of(this).region)
availabilityZoneName: availabilityZone,
},
],
Expand Down

0 comments on commit f3089ac

Please sign in to comment.