This repository collects sample workflows and javascripts snippets for Dynatrace AutomationEngine and the Workflows app.
To get started please have a look into Dynatrace AutomationEngine and Workflows documentation.
You can export and import a workflow via
- Downloading a template YAML from Workflows App
- JSON via API
- Configuration-as-Code (Monaco / Terraform) -- Be aware, that the files are not compatible, as Monaco JSONs contain escaping and uses another YAML format to fill placeholders.
Within a workflow, click on "new task", select "Run Javascript" and copy/paste the snippet into the Javascript action.
Export your workflow as a template and make sure that you have no secrets, specific URLs, and alike in the resulting .yaml file.
Also make sure you have the proper versions of depending apps referenced within the file. Use generally available versions and no dev version of any app that you used in the environment.
Create a pull request and upload your contribution to the samples/ directory (for instance, samples/my-sample-name). Please follow our contribution guide.