Skip to content

EC2 — Verify

Progress checklist

Run these commands inside the SSM session on the EC2 instance unless the step says otherwise.

  1. Check the mount with df. Required

    Terminal window
    df -h /mnt/s3files

    Expected output shows a filesystem entry for s3files:

    Filesystem Size Used Avail Use% Mounted on
    fs-…:/ 8.0E 0 8.0E 0% /mnt/s3files
  2. Confirm the mount type with findmnt. Required

    Terminal window
    findmnt -T /mnt/s3files

    The FSTYPE column must show s3files.

  3. Write a test file. Required

    Terminal window
    echo "hello from ec2 $(date -u)" > /mnt/s3files/test.txt
    cat /mnt/s3files/test.txt

    The file should echo back immediately.

  4. List the directory contents. Required

    Terminal window
    ls -la /mnt/s3files/
  5. Exit the SSM session. Required

    Terminal window
    exit
  6. 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.txt object should be listed.

When you are finished, run Teardown to terminate the instance and clean up all resources.