Unfortunately, App Engine Flex does not have the capability to mount volumes. While it's possible to provision and use additional disk space, as shown in this documentation, it is still currently not possible to mount a disk created through the console or the CLI. Just like what John Hanley suggested, I would recommend for you to use Cloud Storage instead. See below high level steps you can use as guide (used Python runtime for this example):
- Import the Cloud Storage client library:
pip install --upgrade google-cloud-storage
General code for downloading Cloud Storage objects
Create a download function within your app that will execute once app engine spins up a new instance.
Additionally, another workaround is to mount a storage bucket to your app using gcsfuse, however there is a drawback as you may encounter privilege issues and any configurations you make could reset, as GAE Flex instances always restarts at least once a week. See this SO post as reference.