Need to get the internal endpoint from the role environment, I think