If anyone just wants to try it locally, you can downgrade the APM Server version in the YAML file to any version before 8 — for example, version 7.x.
The main issue is that in version 8, the template can’t be generated, whereas it works in version 7.