-1

I have been trying to set up CodeCommit with aws sdk, but when i try and list al the repositories, it says “Unknown Error Gateway Timeout”. The secret keys works fine with S3 but codeCommit gives Gateway timeout error. Any idea ? The user with secret keys have administrator privileges

I tried this, where codeCommit has been defined in other file. Any reason why I am getting this error?

const { codeCommit } = require ("./../../aws")
var hello = await codeCommit.listRepositories(params).promise();;

G. Chohan
  • 71
  • 1
  • 1
  • 6

1 Answers1

0

Check if you can connect to connection endpoint [1] via a command like curl:

$ curl https://git-codecommit.us-east-2.amazonaws.com

If not, something in your network is blocking access, presumably a firewall.

shariqmaws
  • 8,152
  • 1
  • 16
  • 35