I am deploying a PHP app using AWS Elastic Beanstalk. I would like to use EFS I've already built. I'm using a .ebextension folder using following link as guide:
I have configured the storage-efs-mountfilesystem.config file in .ebextension folder file:
option_settings:
aws:elasticbeanstalk:application:environment:
FILE_SYSTEM_ID: fs-12345678
MOUNT_DIRECTORY: '/efs'
When I look in my ec2 instance spun up from elastic beanstalk, I do not see the EFS mounted. I am trying to figure out what might be the issue here? Wouldn't it be better to have EFS details in a file in .ebextension folder so it can be persistently mounted when software is deployed regularly?