#NEWLINE# def parse_env( ) : #NEWLINE# #INDENT# service_name = os . environ . get ( 'SERVICE_NAME' ) #NEWLINE# service_instance = os . environ . get ( 'SERVICE_INSTANCE' ) #NEWLINE# region = os . environ . get ( 'REGION' ) #NEWLINE# service_group = '{0}-{1}' . format ( service_name , service_instance , region ) #NEWLINE# cluster_name = '{0}-{1}' . format ( service_group , region ) #NEWLINE# return { #NEWLINE# #INDENT# 'service_name' : service_name , #NEWLINE# 'service_instance' : service_instance , #NEWLINE# 'region' : region , #NEWLINE# 'service_group' : service_group , #NEWLINE# 'cluster_name' : cluster_name , #NEWLINE# #UNINDENT# }