Extracted aws implementation from datastore.