question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Assistance troubleshooting sam local invoke

See original GitHub issue

I’m trying to use sam local invoke to simulate an S3 event. When I try and run the sam local invoke command "sam local invoke -e event.json --debug-port 5858 ExampleFunction"

I get an error message “unable to use container host config override file from ‘$HOME/.config/aws-sam-local/container-config.json’: HOME env variable is not set”

Where should the HOME environment variable be set? I assume I’m doing something silly…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:25 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
PaulMaddoxcommented, Nov 8, 2017

We have a fix for this coming. The development work is done and currently awaiting code review (see the above referenced pull request).

1reaction
kaarthikeyanspcommented, Nov 6, 2017

I had the same issue, I added HOME in environment variable and pointed it to “C:\Users<username>”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Assistance troubleshooting sam local invoke #82 - GitHub
I'm trying to use sam local invoke to simulate an S3 event. When I try and run the sam local invoke command "sam...
Read more >
sam local invoke - AWS Serverless Application Model
The sam local invoke command is useful for developing serverless functions that handle asynchronous events, such as Amazon Simple Storage Service (Amazon ...
Read more >
Invoking AWS Lambda functions locally using AWS SAM CLI
The command to invoke Lambda locally is sam local invoke and -e flag is used to specify the path to the Lambda event....
Read more >
sam local invoke - Amazon Serverless Application Model
The sam local invoke command is useful for developing serverless functions that handle asynchronous events, such as Amazon Simple Storage Service (Amazon S3) ......
Read more >
Issue with AWS Sam invoking local lambda - Stack Overflow
Please be sure to answer the question. Provide details and share your research! ... Asking for help, clarification, or responding to other answers ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found