LustreConfiguration Struct
The configuration for the Amazon FSx for Lustre file system.
Example
import { aws_s3 as s3 } from 'aws-cdk-lib';
declare const vpc: ec2.Vpc;
declare const bucket: s3.Bucket;
const lustreConfiguration = {
deploymentType: fsx.LustreDeploymentType.SCRATCH_2,
exportPath: bucket.s3UrlForObject(),
importPath: bucket.s3UrlForObject(),
autoImportPolicy: fsx.LustreAutoImportPolicy.NEW_CHANGED_DELETED,
};
const fs = new fsx.LustreFileSystem(this, "FsxLustreFileSystem", {
vpc: vpc,
vpcSubnet: vpc.privateSubnets[0],
storageCapacityGiB: 1200,
lustreConfiguration,
});
Properties
autoImportPolicyoptionalLustreAutoImportPolicyauto_import_policyoptionalLustreAutoImportPolicyautoImportPolicyoptionalLustreAutoImportPolicyAutoImportPolicyoptionalLustreAutoImportPolicyAutoImportPolicyoptionalLustreAutoImportPolicy#Default: no import policy
notes
When you create your file system, your existing S3 objects appear as file and directory listings. Use this property to choose how Amazon FSx keeps your file and directory listings up to date as you add or modify objects in your linked S3 bucket. AutoImportPolicy can have the following values:
For more information, see Automatically import updates from your S3 bucket .
This parameter is not supported for Lustre file systems using the
Persistent_2deployment type.
automaticBackupRetentionoptionalDurationautomatic_backup_retentionoptionalDurationautomaticBackupRetentionoptionalDurationAutomaticBackupRetentionoptionalDurationAutomaticBackupRetentionoptionalDuration= Duration.days(0)#Setting this property to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days.
Automatic Backups is not supported on scratch file systems.
copyTagsToBackupsoptionalbooleancopy_tags_to_backupsoptionalboolcopyTagsToBackupsoptionalBooleanCopyTagsToBackupsoptionalboolCopyTagsToBackupsoptional*bool= false#dailyAutomaticBackupStartTimeoptionalDailyAutomaticBackupStartTimedaily_automatic_backup_start_timeoptionalDailyAutomaticBackupStartTimedailyAutomaticBackupStartTimeoptionalDailyAutomaticBackupStartTimeDailyAutomaticBackupStartTimeoptionalDailyAutomaticBackupStartTimeDailyAutomaticBackupStartTimeoptionalDailyAutomaticBackupStartTime#Default: no backup window
dataCompressionTypeoptionalLustreDataCompressionTypedata_compression_typeoptionalLustreDataCompressionTypedataCompressionTypeoptionalLustreDataCompressionTypeDataCompressionTypeoptionalLustreDataCompressionTypeDataCompressionTypeoptionalLustreDataCompressionType#Default: no compression
For more information, see Lustre data compression in the Amazon FSx for Lustre User Guide .
deploymentTypeLustreDeploymentTypedeployment_typeLustreDeploymentTypedeploymentTypeLustreDeploymentTypeDeploymentTypeLustreDeploymentTypeDeploymentTypeLustreDeploymentTyperequired#driveCacheTypeoptionalDriveCacheTypedrive_cache_typeoptionalDriveCacheTypedriveCacheTypeoptionalDriveCacheTypeDriveCacheTypeoptionalDriveCacheTypeDriveCacheTypeoptionalDriveCacheType#Default: no drive cache
exportPathoptionalstringexport_pathoptionalstrexportPathoptionalStringExportPathoptionalstringExportPathoptional*string#Default: s3://import-bucket/FSxLustre[creation-timestamp]
notes
The path must use the same Amazon S3 bucket as specified in ImportPath. If you only specify a bucket name, such as s3://import-bucket, you get a 1:1 mapping of file system objects to S3 bucket objects. This mapping means that the input data in S3 is overwritten on export. If you provide a custom prefix in the export path, such as s3://import-bucket/[custom-optional-prefix], Amazon FSx exports the contents of your file system to that export prefix in the Amazon S3 bucket.
importedFileChunkSizeMiBoptionalnumberimported_file_chunk_size_mi_boptionalint | floatimportedFileChunkSizeMiBoptionalNumberImportedFileChunkSizeMiBoptionaldoubleImportedFileChunkSizeMiBoptional*float64= 1024#Allowed values are between 1 and 512,000.
importPathoptionalstringimport_pathoptionalstrimportPathoptionalStringImportPathoptionalstringImportPathoptional*string#Default: no bucket is imported
Must be of the format "s3://{bucketName}/optional-prefix" and cannot exceed 900 characters.
perUnitStorageThroughputoptionalnumberper_unit_storage_throughputoptionalint | floatperUnitStorageThroughputoptionalNumberPerUnitStorageThroughputoptionaldoublePerUnitStorageThroughputoptional*float64#Default: no default, conditionally required for PERSISTENT_1 and PERSISTENT_2 deployment type
notes
Required with PERSISTENT_1 and PERSISTENT_2 deployment types.
Valid values:
- For PERSISTENT_1 SSD storage: 50, 100, 200 MB/s/TiB.
- For PERSISTENT_1 HDD storage: 12, 40 MB/s/TiB.
- For PERSISTENT_2 SSD storage: 125, 250, 500, 1000 MB/s/TiB.
weeklyMaintenanceStartTimeoptionalLustreMaintenanceTimeweekly_maintenance_start_timeoptionalLustreMaintenanceTimeweeklyMaintenanceStartTimeoptionalLustreMaintenanceTimeWeeklyMaintenanceStartTimeoptionalLustreMaintenanceTimeWeeklyMaintenanceStartTimeoptionalLustreMaintenanceTime#Default: no preference
The first digit is the day of the week, starting at 1 for Monday, then the following are hours and minutes in the UTC time zone, 24 hour clock. For example: '2:20:30' is Tuesdays at 20:30.