aws-samples / aws-samples/amazon-lex-bot-deploy
Error when deploying in Canada region
- Dominant language
- Python
- Stars
- 22
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
* amazon-lex-bot-deploy version: 0.1.9
* Python version: 3.10.11
* Operating System: Amazon Linux 2
### Description
I deployed Lex bot successfully in us-east-1 with the exact same method but failed in the region ca-central-1 that I need. That region should have been supported already according to this announcement: https://aws.amazon.com/about-aws/whats-new/2021/05/amazon-lex-available-aws-canada-central-region/ .
Here is the command and error messages:
./bin/lex-bot-deploy -s ./amazon_lex_bot_deploy/examples/BookTrip_Export.json
ERROR:amazon_lex_bot_deploy.amazon_lex_bot_deploy:Could not connect to the endpoint URL: "https://models.lex.ca-central-1.amazonaws.com/imports/"
ERROR:amazon_lex_bot_deploy.amazon_lex_bot_deploy:Maybe Amazon Lex is not supported in region defined. Check https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/
ERROR:__main__:Could not connect to the endpoint URL: "https://models.lex.ca-central-1.amazonaws.com/imports/"
Exception ignored in:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/zipfile.py", line 1821, in __del__
self.close()
File "/usr/local/lib/python3.10/zipfile.py", line 1838, in close
self.fp.seek(self.start_dir)
ValueError: I/O operation on closed file.
### What I Did
```
./bin/lex-bot-deploy -s ./amazon_lex_bot_deploy/examples/BookTrip_Export.json
ERROR:amazon_lex_bot_deploy.amazon_lex_bot_deploy:Could not connect to the endpoint URL: "https://models.lex.ca-central-1.amazonaws.com/imports/"
ERROR:amazon_lex_bot_deploy.amazon_lex_bot_deploy:Maybe Amazon Lex is not supported in region defined. Check https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/
ERROR:__main__:Could not connect to the endpoint URL: "https://models.lex.ca-central-1.amazonaws.com/imports/"
Exception ignored in:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/zipfile.py", line 1821, in __del__
self.close()
File "/usr/local/lib/python3.10/zipfile.py", line 1838, in close
self.fp.seek(self.start_dir)
ValueError: I/O operation on closed file.
```
Contributor guide
Research direction
Start with the ./bin/lex-bot-deploy entry point and the examples/BookTrip_Export.json input, then reproduce the deployment in ca-central-1 and compare it with us-east-1. Done means identifying why the models.lex.ca-central-1.amazonaws.com/imports/ endpoint fails and either enabling the deployment or reporting a clear supported-region error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100