Generate files based on environment variables or yaml files