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

Error steps from the wiki local lambda #41

Closed
asyba opened this issue Jan 8, 2019 · 2 comments
Closed

Error steps from the wiki local lambda #41

asyba opened this issue Jan 8, 2019 · 2 comments

Comments

@asyba
Copy link

asyba commented Jan 8, 2019

Following this: https://github.com/airware/stepfunctions-local/wiki/Lambdas-deployed-on-Localstack

aws lambda --endpoint http://localhost:4574 create-function --function-name Success --runtime nodejs6.10 --role success-role --handler handlers.successHandler --zip-file fileb://handlers.zip | export SUCCESS_LAMBDA_ARN=`jq -r .FunctionArn`

Error:

"parse error: Invalid numeric literal at line 1, column 4"

@asyba
Copy link
Author

asyba commented Jan 8, 2019

This was the solution: aws-samples/aws-iot-chat-example#9
Maybe you could add in the wiki that the "aws/credentials or .aws/config" has to be "json" and no "text"

Other issue that I have:

aws stepfunctions --endpoint http://localhost:4584 list-state-machines | export STATE_MACHINE_ARN=`jq -r .stateMachines[0].stateMachineArn`

zsh: no matches found: .stateMachines[0].stateMachineArn
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe

@ChristopheBougere
Copy link
Owner

Hi @asyba, I'll update the wiki about storing credentials in JSON.
Could you past the result of aws stepfunctions --endpoint http://localhost:4584 list-state-machines, so we can understand what's wrong with the jq parsing?

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