aws sample code.