after correcting end in aws code