updated aws sample