Retrieving gpg key failed during yum install on amazon linux

Configuration from here (version 6.0):

sudo yum install -y mongodb-org

GPG key retrieval failed: [Errno 12] Timeout on (28, ‘Failed to connect to www mongodb org port 443 after 4376 ms: Connection timed out’)

Download works without any issues on my browser.
Also yum in general works perfectly, mongodb repository is only one failing.
It is very weird everything else seems to work. Possibly it is something unrelated to but I can’t figure out what.