The efs_csi_driver_enable
parameter enables the EFS CSI driver to use the AWS EFS volume feature. This allows your services to utilize AWS Elastic File System (EFS) for scalable, shared file storage.
The default value for efs_csi_driver_enable
is false
.
To enable the EFS CSI driver, use the following command:
$ convox rack params set efs_csi_driver_enable=true -r rackName
Setting parameters... OK
This command enables the AWS EFS volume feature for your rack.
AWS EFS provides a scalable file storage solution that supports multiple instances accessing the same file system, making it ideal for shared data storage across service replicas.
To configure your services to use AWS EFS for persistent storage, you can set up your convox.yml
as follows:
services:
web:
build: .
port: 3000
volumeOptions:
- awsEfs:
id: "efs-1"
accessMode: ReadWriteMany
mountPath: "/my/data/"
- awsEfs:
id: "efs-2"
accessMode: ReadOnlyMany
mountPath: "/my/read-only/data/"
Enabling the EFS CSI driver provides enhanced flexibility and scalability for your data storage needs, leveraging AWS EFS’s capabilities for your applications.