eZ Platform Enterprise is a "commercial extended" version of ez Platform that includes, among other things, support for push-based purging on the Fastly CDN.
eZ Platform's documentation includes instructions on how to configure eZ Platform for Fastly. Follow the steps there to prepare eZ Platform for Fastly.
The best way to provide the Fastly credentials and configuration to eZ Platform on Platform.sh is via environment variables. That way private credentials are never stored in Git.
production branch is what will be deployed to the Production Cluster. You can therefore set environment variables on that branch specifically and they will be replicated over to the Production Cluster on each git push without affecting development environments.
platform variable:set -e production env:HTTPCACHE_PURGE_TYPE fastly platform variable:set -e production env:FASTLY_SERVICE_ID YOUR_ID_HERE platform variable:set -e production env:FASTLY_KEY YOUR_ID_HERE
YOUR_ID_HERE with the Fastly Service ID and Key obtained from Fastly.
Optionally, if you have a separate set of Fastly credentials to use for Staging you can set those on the
staging branch by replacing
staging in the above commands.
See the Launching on Fastly instructions for configuring your domain with Fastly.