This error appears when navigating to Performance, or the main W3TC settings page.

Screen Shot 2018-03-05 at 12.15.45 PM.png

This is because of a bug in the latest CloudFormation template on the AMI Marketplace page. An update is currently pending, but you can download the corrected template here.

To fix this issue, run the following commands:

cd /var/www/html/wordpress
chown -R nginx:nginx .

This sets the ownership of all docroot files to nginx.

Alternatively, you can run this command that fixes the permissions: