Instead of EFS, use a WordPress plug-in like WP Offload Media Lite ( https://en-ca.wordpress.org/plugins/amazon-s3-and-cloudfront... ) that immediately moves those uploaded files to S3. Cheaper and more resilient (if you want to to be).
All the configuration is passed via environment variables so you don't even have to keep the config files in EFS.