EC2 — Verify
Progress checklist
Overview
Section titled “Overview”Run these commands inside the SSM session on the EC2 instance unless the step says otherwise.
-
Check the mount with
df. RequiredTerminal window df -h /mnt/s3filesExpected output shows a filesystem entry for
s3files:Filesystem Size Used Avail Use% Mounted onfs-…:/ 8.0E 0 8.0E 0% /mnt/s3files -
Confirm the mount type with
findmnt. RequiredTerminal window findmnt -T /mnt/s3filesThe
FSTYPEcolumn must shows3files. -
Write a test file. Required
Terminal window echo "hello from ec2 $(date -u)" > /mnt/s3files/test.txtcat /mnt/s3files/test.txtThe file should echo back immediately.
-
List the directory contents. Required
Terminal window ls -la /mnt/s3files/ -
Exit the SSM session. Required
Terminal window exit -
Confirm the object appears in S3 (from your workstation). Required
Run on your workstation (not in the SSM session):
Terminal window aws s3 ls "s3://${BUCKET}/" --region "$AWS_REGION"The
test.txtobject should be listed.
Next step
Section titled “Next step”When you are finished, run Teardown to terminate the instance and clean up all resources.