change to use regex to do the domain mappings. Also add config to AWS to be able to set from configuration file.