1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
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:
respondido há um ano
Conteúdo relevante
- AWS OFICIALAtualizada há 3 meses
- AWS OFICIALAtualizada há 2 anos