In NZ we can generally get 3 months worth of prescription medicines. Chemist is apologetic when they only have 1 or 2 months worth available.
As for major shortages there have been times during covid lockdowns when there were issues as not enough supply coming into the country.