aws-api-gateway-cli-test
aws-api-gateway-cli-test copied to clipboard
Missing arguments when running example from tutorial.
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 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?