Only init amazon SDK when we are publishing