Conditional Layer Creation Based on Environment Configuration

What's the best way to achieve a conditional creation of a layer based on an environment variable / configuration? E.g. given multiple storage options, dependend on the provided configuration it should take the respective implementation?
Was this page helpful?