1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
Code executed in the Bedrock Agent Code Interpreter's sandbox environment does not have access to the internet.
Therefore, it cannot be linked to AWS services or external services.
For example, if you give the instructions "Install boto3 with pip install and display a list of ec2 instances," the code will be created, but after execution you will see an error.
I tried running it multiple times, but I received a response saying that there was no Internet connection and boto3 could not be installed, so it seems that the sandbox environment does not have an external connection.
Relevant content
asked 2 years ago
asked 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 4 months ago

Ok, great. Appreciate you sharing the results of that experiment! It would be really helpful to have this documented somewhere so that we can reference it and have confidence that it won't change