In a CloudFormation template, I'm currently deploying a .NET app to Elastic Beanstalk, but would love to mount an EFS file system to it. I looked at this .ebextensions config file and included it in the project, like so:
~/my-app/
|-- .ebextensions
| |-- storage-efs-mountfilesystem.config
Inside this .config file, it asks for the EFS Volume ID:
option_settings:
aws:elasticbeanstalk:application:environment:
EFS_VOLUME_ID: '`{"Ref" : "FileSystem"}`'
EFS_MOUNT_DIR: '/efs_volume'
My question is that in the CloudFormation template, I want to try and pass the EFS ID as a parameter string called "FileSystem". Is it possible for the config files in the .ebextension directory of the app to have access to that parameter so I don't have to manually insert the EFS ID in the config file. In other words, have the { Ref: FileSystem} work accordingly?
Thanks for any help or clarification on this.