The market's web servers run in us-east-1a and us-east-1b of the default VPC. The security group uploads-efs-mpnw0a is ready for the mount targets.
-
Create a file system with the creation token and Name
market-uploads, keeping its id inFS. -
Keep the group's id in
SG:shSG=$(aws ec2 describe-security-groups --group-names uploads-efs-mpnw0a --query "SecurityGroups[0].GroupId" --output text) -
Give it a mount target in each of the two zones. Each needs the default VPC's subnet in that zone; this finds the one in
us-east-1a:shSUBNET=$(aws ec2 describe-subnets --filters Name=availability-zone,Values=us-east-1a --query "Subnets[0].SubnetId" --output text) -
List the mount targets and wait until both are
available.