You may see one of the following errors:
* The security token included in the request is invalid
* The request signature we calculated does not match the signature you provided.
Check your AWS Secret Access Key and signing method
If you notice AWS connection errors for Rekognition, Comprehend and/or Textract, then check your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY carefully.
For example:
- A mistyped
AWS_ACCESS_KEY_IDmay cause an error such as "The security token included in the request is invalid". - A mistyped
AWS_SECRET_ACCESS_KEYmay cause the error shown in the second example (above).
You may see other connection errors, for example, if neither AWS_ACCESS_KEY_ID nor AWS_SECRET_ACCESS_KEY has been set.
Also, if you're using Docker Compose, then you may find that setting or exporting environment variables overrides a local .env configuration file.