In this section, you will create a new FSx for lustre filesystem in your test account
cd ~/environment
export FSX_NAME="sc22lab2"
export SG_ID=$(aws ec2 describe-security-groups --region ${AWS_REGION} --query "SecurityGroups[*].[GroupId]" --filters Name=group-name,Values=hpc-cluster-lab-Compute* --output text)
source ~/environment/env_vars
export FSX_ID=$(aws fsx create-file-system \
--file-system-type LUSTRE \
--storage-capacity 1200 \
--storage-type SSD \
--subnet-ids ${SUBNET_ID} \
--security-group-ids ${SG_ID} \
--tags Key=Name,Value=${FSX_NAME} \
--lustre-configuration DeploymentType="PERSISTENT_2",PerUnitStorageThroughput=125 \
--region ${AWS_REGION} \
--query "FileSystem.FileSystemId" \
--output text)
echo "export FSX_ID=${FSX_ID}" >> ~/environment/env_vars
echo ${FSX_ID}
aws fsx --region ${AWS_REGION} describe-file-systems --file-system-ids ${FSX_ID} --query "FileSystems[0].Lifecycle" --output text
The status should be CREATING. Once created the status should be AVAILABLE. You can also check the Filesystem details and status in the FSx console.
Amazon FSx for Lustre file system creation will take approximately 10 mins. In the meantime let us move to next steps.