aws-api-gateway-cli-test icon indicating copy to clipboard operation
aws-api-gateway-cli-test copied to clipboard

Missing arguments when running example from tutorial.

Open salami-art opened this issue 7 years ago • 1 comments

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='[email protected]' \
--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?

salami-art avatar Oct 13 '18 07:10 salami-art

@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?

jayair avatar Oct 14 '18 17:10 jayair