AnomalyInnovations / aws-api-gateway-cli-test

A simple CLI to test API Gateway endpoints with IAM authorization
MIT License
120 stars 29 forks source link

Missing arguments when running example from tutorial. #10

Open salami-art opened 5 years ago

salami-art commented 5 years ago

I've followed the tutorial at https://serverless-stack.com/chapters/test-the-apis.html . I'm sending all the parameters like so:

npx aws-api-gateway-cli-test \
--username='admin@example.com' \
--password='Passw0rd!' \
--user-pool-id='eu-central-1_3XXXXXXXX' \
--app-client-id='kvxxxxxxxxxxigvkxxxx7a29' \
--cognito-region=‘eu-central-1' \
--identity-pool-id='eu-central-1:dxxxxxxx-28xx-4xxx-9xxx-cxxxxxxx6yyb' \
--invoke-url='https://lxxxxxxx49.execute-api.eu-central-1.amazonaws.com/prod' \
--api-gateway-region=‘eu-central-1' \
--path-template='/notes' \
--method='POST' \
--body='{"content":"hello world","attachment":"hello.jpg"}'

I've also tried without the prod part after the url.

What I'm getting back is an (annoyingly) localized message in my language that says that required parameters identity-pool-id, invoke-url are missing (and they aren't...).

How am I supposed to get past this point in the tutorial?

jayair commented 5 years ago

@salami-art I'm not sure what the issue is but I notice that some of the arguments have weird tick marks instead of single-quotes.

--cognito-region=‘eu-central-1'

vs

--cognito-region='eu-central-1'

It could be a copy paste issue from the PDF?