Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccessible host: `cognito-idp.your.amazonaws.com'. #231

Closed
ringoyip0901 opened this issue May 4, 2018 · 2 comments
Closed

Inaccessible host: `cognito-idp.your.amazonaws.com'. #231

ringoyip0901 opened this issue May 4, 2018 · 2 comments

Comments

@ringoyip0901
Copy link

Link: https://serverless-stack.com/chapters/test-the-apis.html

When I was testing the API gateway, I got the following message in the terminal: "Inaccessible host: cognito-idp.your.amazonaws.com'. This service may not be available in the YOUR' region."

Is it possibly due to the S3 bucket itself, or some other things that I am not yet aware of? Thank you so much.

@jayair
Copy link
Contributor

jayair commented May 4, 2018

@ringoyip0901 Some times that happens when that host is not accessible (internet connectivity issues). But what does your full command look like?

@ringoyip0901
Copy link
Author

ringoyip0901 commented May 4, 2018

@jayair thank you for the reply! I use a mac so I use the same command as the tutorial shows:
"npx aws-api-gateway-cli-test
--username='admin@example.com'
--password='Passw0rd!'
--user-pool-id='YOUR_COGNITO_USER_POOL_ID'
--app-client-id='YOUR_COGNITO_APP_CLIENT_ID'
--cognito-region='YOUR_COGNITO_REGION'
--identity-pool-id='YOUR_IDENTITY_POOL_ID'
--invoke-url='YOUR_API_GATEWAY_URL'
--api-gateway-region='YOUR_API_GATEWAY_REGION'
--path-template='/notes'
--method='POST'
--body='{"content":"hello world","attachment":"hello.jpg"}'"

I made sure every piece of information was provided correctly. I'm pretty sure the internet was also working when I ran the command though. What other possibilities are there? I tried it again and I got this message this time:

"Inaccessible host: cognito-identity.xn--us-east-1-9b0eua.amazonaws.com'. This service may not be available in the “us-east-1”' region."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants