1 Answer
- Newest
- Most votes
- Most comments
0
The sam build command uses the python requirements.txt file to install the required packages in the container image or zip file. Your error implies that aws_requests_auth is not included in the requirements.txt file. In fact, I got the exact same error when I replicated your code and did not include that package in the requirements.txt file.
How to resolve:
- requirements.txt should already exist in your app folder, if not, create it.
- Add any required packages to that file
- Rebuild the application by executing
sam build
- Run the api locally with
sam local start-api
Here is a quick screenshot of my project:
answered 10 months ago
Relevant content
- asked a year ago
- AWS OFFICIALUpdated a year ago
- I tried to delete my ACM certificate but received an error that it's in use with other AWS resourcesAWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago