1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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:
répondu il y a un an
Contenus pertinents
- Réponse acceptéedemandé il y a 2 ans
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 5 mois