Credits: Inspired by Dan V.'s cloudshell-store project that demonstrated the CloudShell API use, I built an unofficial boto3 client by injecting a custom botocore service model and you get a native boto3 experience: SigV4 signing, retries...
⚠️ Undocumented API — AWS can break it anytime. For exploration and learning only.
🔗 https://github.com/guyon-it-consulting/cloudshell-boto3
AWS CloudShell Has a Hidden API. Here's How to Use It with boto3.
AWS CloudShell is a free, browser-based shell built into the AWS Console — pre-authenticated, with the AWS CLI, Python, Docker, and ~1 GB of persistent storage per region. No setup, no EC2, no cost. It even supports VPC mode, so it can reach your private resources directly.
But here's the thing: it has no public API . No SDK, no CLI, no CloudFormation support. Console only.
Or so it seems. 😁
Discovering the API
If you open your browser's developer tools while launching CloudShell, you'll notice something interesting.…