AWS example code in scala based on training lab