set up to easily switch between prod/code APIs
don't move to prod APIs yet
minimize traffic on APIs when nobody is using the app
Fix missing parentheses
minor logging tweaks
override discussion api environment based on SNS ARN