outputEnvironmentName function
The environment variable that carries the output name:
ORDERS_TOPIC_ID for orders_topic_id, ordersTopicId or
orders-topic-id.
Implementation
String outputEnvironmentName(String name) => name
.replaceAllMapped(RegExp('([a-z0-9])([A-Z])'), (m) => '${m[1]}_${m[2]}')
.replaceAll('-', '_')
.toUpperCase();