Flip-flop aws require statement