updated Amazon SDK from v1 to v2