Move aws configuration to db