Small piece of code to help on aws