You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fileSystemName: Is the name you want to assign the file system.
26
26
subnetID1: Is the subnet ID of the preferred subnet you want the file system to be accessible from.
27
27
subnetID2: Is the subnet ID of the standby subnet you want the file system to be accessible from. Only allowed for multi availability zone deployments.
28
28
security-group-id: Is the security ID that you want applied to the ENIs that are assigned to the file system.
29
29
region: Is the AWS region where the FSxN file system will reside.
30
-
availability: Specifies whether the HA pair should be spread across 'single' or 'multiple' availability zones. Valid settings are 'Single' or 'Multi' (default).
31
-
size: Is size, in gigabytes, you want the file system to be. Minimum and the default is 1024.
32
-
throughput: Is the throughput capacity you the file system to have. Valid numbers are 128, 256, 512, 1024, 2048, and 4096. Default is 128.
30
+
availability: Specifies whether the HA pair should be spread across 'single' or 'multiple' availability zones. Valid settings are 'single' or 'multi' (default).
31
+
size: Is size, in gigabytes, you want the file system to be. Minimum is 1024 per number of HA pairs. Default is 1024.
32
+
throughput: Is the throughput capacity you the file system to have. Valid Gen1 numbers are 128, 256, 512, 1024, 2048, and 4096. Valid Gen2 numbers are 384, 768, 1536, 3072, and 6144. Default is 128.
33
+
numberPairs: Is the number of HA pairs you want the file system to have. Can only be greater than 1 with throupghput numbers of 1536, 3072, and 6144. Default is 1.
33
34
CIDR: Is an address range that the system management, and data access, IPs will be allocated from. It is only allowed for multi availability zone deployments.
35
+
-wait: Forces the script to wait until the file system is created before returning.
echo"Error, unknown availability type '$availType'."
176
+
usage
177
+
fi
178
+
else
179
+
echo"Error, unsupported throughput value '$throughput'."
180
+
usage
181
+
fi
122
182
#
123
183
# Ensure all the required parameters have been provided.
124
-
if [ -z"$fileSystemName"-o-z"$subnetID1"-o"$azType"=="MULTI_AZ_1"-a-z"$subnetID2" ];then
125
-
echo"Missing arguments."1>&2
184
+
if [ -z"$fileSystemName" ];then
185
+
echo"Error, you must specify a file system name."1>&2
186
+
usage
187
+
fi
188
+
189
+
if [ -z"$subnetID1"-o"$azType"=="MULTI_AZ_1"-a-z"$subnetID2"-o"$azType"=="MULTI_AZ_2"-a-z"$subnetID2" ];then
190
+
echo"Error, you must specify only subnetID1 for a single availability zone deployments or both subnetID1 and subnetID2 for a multi availability zone deployments."1>&2
126
191
usage
127
-
exit 1
128
192
fi
129
-
if [ $azType=="SINGLE_AZ_1" ];then
193
+
194
+
if [[ $azType==*"SINGLE_AZ"* ]];then
130
195
if [ !-z"$endpointips" ];then
131
-
echo"Error, you can not specify Endpoint IP address range when deploying in a single availability zone."1>&2
196
+
echo"Error, you cannot specify Endpoint IP address range when deploying in a single availability zone."1>&2
132
197
exit 1
133
198
fi
134
199
@@ -138,24 +203,82 @@ if [ $azType == "SINGLE_AZ_1" ]; then
0 commit comments