legacy - AWS Code Sample