hook for aws