Conditional logic for NOT connecting to AWS when in local development