Creates a new, empty Amazon FSx file system.
If a file system with the specified client request token exists and the
parameters match, create_file_system
returns
the description of the existing file system. If a file system specified
client request token exists and the parameters don't match, this call
returns IncompatibleParameterError
. If a file system with the
specified client request token doesn't exist,
create_file_system
does the following:
Creates a new, empty Amazon FSx file system with an assigned ID, and
an initial lifecycle state of CREATING
.
Returns the description of the file system.
This operation requires a client request token in the request that
Amazon FSx uses to ensure idempotent creation. This means that calling
the operation multiple times with the same client request token has no
effect. By using the idempotent operation, you can retry a
create_file_system
operation without the
risk of creating an extra file system. This approach can be useful when
an initial call fails in a way that makes it unclear whether a file
system was created. Examples are if a transport level timeout occurred,
or your connection was reset. If you use the same client request token
and the initial call created a file system, the client receives success
as long as the parameters are the same.
The create_file_system
call returns while
the file system's lifecycle state is still CREATING
. You can check the
file-system creation status by calling the
describe_file_systems
operation, which
returns the file system state along with other information.
fsx_create_file_system(ClientRequestToken, FileSystemType,
StorageCapacity, StorageType, SubnetIds, SecurityGroupIds, Tags,
KmsKeyId, WindowsConfiguration, LustreConfiguration)
A list with the following syntax:
list(
FileSystem = list(
OwnerId = "string",
CreationTime = as.POSIXct(
"2015-01-01"
),
FileSystemId = "string",
FileSystemType = "WINDOWS"|"LUSTRE",
Lifecycle = "AVAILABLE"|"CREATING"|"FAILED"|"DELETING"|"MISCONFIGURED"|"UPDATING",
FailureDetails = list(
Message = "string"
),
StorageCapacity = 123,
StorageType = "SSD"|"HDD",
VpcId = "string",
SubnetIds = list(
"string"
),
NetworkInterfaceIds = list(
"string"
),
DNSName = "string",
KmsKeyId = "string",
ResourceARN = "string",
Tags = list(
list(
Key = "string",
Value = "string"
)
),
WindowsConfiguration = list(
ActiveDirectoryId = "string",
SelfManagedActiveDirectoryConfiguration = list(
DomainName = "string",
OrganizationalUnitDistinguishedName = "string",
FileSystemAdministratorsGroup = "string",
UserName = "string",
DnsIps = list(
"string"
)
),
DeploymentType = "MULTI_AZ_1"|"SINGLE_AZ_1"|"SINGLE_AZ_2",
RemoteAdministrationEndpoint = "string",
PreferredSubnetId = "string",
PreferredFileServerIp = "string",
ThroughputCapacity = 123,
MaintenanceOperationsInProgress = list(
"PATCHING"|"BACKING_UP"
),
WeeklyMaintenanceStartTime = "string",
DailyAutomaticBackupStartTime = "string",
AutomaticBackupRetentionDays = 123,
CopyTagsToBackups = TRUE|FALSE,
Aliases = list(
list(
Name = "string",
Lifecycle = "AVAILABLE"|"CREATING"|"DELETING"|"CREATE_FAILED"|"DELETE_FAILED"
)
)
),
LustreConfiguration = list(
WeeklyMaintenanceStartTime = "string",
DataRepositoryConfiguration = list(
Lifecycle = "CREATING"|"AVAILABLE"|"MISCONFIGURED"|"UPDATING"|"DELETING",
ImportPath = "string",
ExportPath = "string",
ImportedFileChunkSize = 123,
AutoImportPolicy = "NONE"|"NEW"|"NEW_CHANGED",
FailureDetails = list(
Message = "string"
)
),
DeploymentType = "SCRATCH_1"|"SCRATCH_2"|"PERSISTENT_1",
PerUnitStorageThroughput = 123,
MountName = "string",
DailyAutomaticBackupStartTime = "string",
AutomaticBackupRetentionDays = 123,
CopyTagsToBackups = TRUE|FALSE,
DriveCacheType = "NONE"|"READ"
),
AdministrativeActions = list(
list(
AdministrativeActionType = "FILE_SYSTEM_UPDATE"|"STORAGE_OPTIMIZATION"|"FILE_SYSTEM_ALIAS_ASSOCIATION"|"FILE_SYSTEM_ALIAS_DISASSOCIATION",
ProgressPercent = 123,
RequestTime = as.POSIXct(
"2015-01-01"
),
Status = "FAILED"|"IN_PROGRESS"|"PENDING"|"COMPLETED"|"UPDATED_OPTIMIZING",
TargetFileSystemValues = list(),
FailureDetails = list(
Message = "string"
)
)
)
)
)
A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.
[required] The type of Amazon FSx file system to create, either WINDOWS
or
LUSTRE
.
[required] Sets the storage capacity of the file system that you're creating.
For Lustre file systems:
For SCRATCH_2
and PERSISTENT_1 SSD
deployment types, valid
values are 1200 GiB, 2400 GiB, and increments of 2400 GiB.
For PERSISTENT HDD
file systems, valid values are increments of
6000 GiB for 12 MB/s/TiB file systems and increments of 1800 GiB for
40 MB/s/TiB file systems.
For SCRATCH_1
deployment type, valid values are 1200 GiB, 2400
GiB, and increments of 3600 GiB.
For Windows file systems:
If StorageType=SSD
, valid values are 32 GiB - 65,536 GiB (64 TiB).
If StorageType=HDD
, valid values are 2000 GiB - 65,536 GiB (64
TiB).
Sets the storage type for the file system you're creating. Valid values
are SSD
and HDD
.
Set to SSD
to use solid state drive storage. SSD is supported on
all Windows and Lustre deployment types.
Set to HDD
to use hard disk drive storage. HDD is supported on
SINGLE_AZ_2
and MULTI_AZ_1
Windows file system deployment types,
and on PERSISTENT
Lustre file system deployment types.
Default value is SSD
. For more information, see Storage Type Options
in the Amazon FSx for Windows User Guide and Multiple Storage Options
in the Amazon FSx for Lustre User Guide.
[required] Specifies the IDs of the subnets that the file system will be accessible
from. For Windows MULTI_AZ_1
file system deployment types, provide
exactly two subnet IDs, one for the preferred file server and one for
the standby file server. You specify one of these subnets as the
preferred subnet using the WindowsConfiguration > PreferredSubnetID
property.
For Windows SINGLE_AZ_1
and SINGLE_AZ_2
file system deployment types
and Lustre file systems, provide exactly one subnet ID. The file server
is launched in that subnet's Availability Zone.
A list of IDs specifying the security groups to apply to all network interfaces created for file system access. This list isn't returned in later requests to describe the file system.
The tags to apply to the file system being created. The key value of the
Name
tag appears in the console as the file system name.
The Microsoft Windows configuration for the file system being created.
svc$create_file_system(
ClientRequestToken = "string",
FileSystemType = "WINDOWS"|"LUSTRE",
StorageCapacity = 123,
StorageType = "SSD"|"HDD",
SubnetIds = list(
"string"
),
SecurityGroupIds = list(
"string"
),
Tags = list(
list(
Key = "string",
Value = "string"
)
),
KmsKeyId = "string",
WindowsConfiguration = list(
ActiveDirectoryId = "string",
SelfManagedActiveDirectoryConfiguration = list(
DomainName = "string",
OrganizationalUnitDistinguishedName = "string",
FileSystemAdministratorsGroup = "string",
UserName = "string",
Password = "string",
DnsIps = list(
"string"
)
),
DeploymentType = "MULTI_AZ_1"|"SINGLE_AZ_1"|"SINGLE_AZ_2",
PreferredSubnetId = "string",
ThroughputCapacity = 123,
WeeklyMaintenanceStartTime = "string",
DailyAutomaticBackupStartTime = "string",
AutomaticBackupRetentionDays = 123,
CopyTagsToBackups = TRUE|FALSE,
Aliases = list(
"string"
)
),
LustreConfiguration = list(
WeeklyMaintenanceStartTime = "string",
ImportPath = "string",
ExportPath = "string",
ImportedFileChunkSize = 123,
DeploymentType = "SCRATCH_1"|"SCRATCH_2"|"PERSISTENT_1",
AutoImportPolicy = "NONE"|"NEW"|"NEW_CHANGED",
PerUnitStorageThroughput = 123,
DailyAutomaticBackupStartTime = "string",
AutomaticBackupRetentionDays = 123,
CopyTagsToBackups = TRUE|FALSE,
DriveCacheType = "NONE"|"READ"
)
)
if (FALSE) {
# This operation creates a new Amazon FSx for Windows File Server file
# system.
svc$create_file_system(
ClientRequestToken = "a8ca07e4-61ec-4399-99f4-19853801bcd5",
FileSystemType = "WINDOWS",
KmsKeyId = "arn:aws:kms:us-east-1:012345678912:key/1111abcd-2222-3333-4444-55556666eeff",
SecurityGroupIds = list(
"sg-edcd9784"
),
StorageCapacity = 3200L,
StorageType = "HDD",
SubnetIds = list(
"subnet-1234abcd"
),
Tags = list(
list(
Key = "Name",
Value = "MyFileSystem"
)
),
WindowsConfiguration = list(
ActiveDirectoryId = "d-1234abcd12",
Aliases = list(
"accounting.corp.example.com"
),
AutomaticBackupRetentionDays = 30L,
DailyAutomaticBackupStartTime = "05:00",
ThroughputCapacity = 32L,
WeeklyMaintenanceStartTime = "1:05:00"
)
)
}
Run the code above in your browser using DataLab