fix context for using aws-sdk