See what happened, reset an emulator, call your APIs and connect to your databases, all from the console.
Activity
A new Activity page lists the API calls CloudTrail recorded, newest first: what was called, by whom, on which resources, and whether it failed. Filter by time range and by one lookup attribute, open any event's full record, export, and auto-refresh every 10 seconds. It starts on calls that change something. (#229)
What shows up depends on what each emulator records; the README has a table. AWS Emulator records about a dozen services, and MiniStack records everything when started with CLOUDTRAIL_RECORDING=1.
Emulator details and reset
Settings now shows the emulator behind the endpoint you're browsing: its version, a link to its docs, and the limits worth knowing. For example, AWS Emulator's 16 MiB request cap, its S3 storage caps, and its Python and Node.js Lambda runtimes also appear next to S3 uploads and Lambda invokes. (#228)
Emulators with a reset (MiniStack, Floci, Moto) get a Reset emulator button that wipes their state after you type the endpoint's name. It's never offered for real AWS and is blocked in read-only mode.
Try it
Send requests to API Gateway stages and Lambda function URLs from the console, and see the status, headers, body and timing. StackPort builds the right address for each emulator and for real AWS, and only ever sends to the selected endpoint's own invoke addresses. (#230)
Connection details
RDS, ElastiCache, OpenSearch, MSK and SQS details now show how to connect from your machine: the address to use and commands to copy (psql, mysql, redis-cli, curl, the AWS CLI and more), with notes when an emulator needs a setting to make an address reachable. (#231)
Docs
- The README, which is also this package's page on PyPI and Docker Hub, has a "Works with" table, a quick start for each emulator, and a short FAQ. Emulators are listed as AWS Emulator, MiniStack, Floci, LocalStack, Moto. MiniStack is StackPort's partner project. (#232)
- The pip and
docker runcommands for MiniStack, Floci, LocalStack and Moto now pass test keys, so they work on a machine without AWS credentials. - The website, stackport.cloud, was refreshed with a guide for AWS Emulator and a page for the API Explorer.
Fixes
- A URL counts as AWS only when its host is an AWS host. A path or query mentioning
amazonaws.comno longer turns a local endpoint into "AWS", and an uppercase AWS host is no longer treated as local. - Request bodies with
NaN,Infinityor a lone surrogate character get a 422 instead of a 500.
Full changelog: v0.4.10...v0.4.11