Skip to content

Add --containers, --arch and copyto to the EC2 sandbox script - #490

Merged
peter-smith-phd merged 5 commits into
mainfrom
ec2-sandbox-containers-flag
Sep 8, 2026
Merged

Add --containers, --arch and copyto to the EC2 sandbox script#490
peter-smith-phd merged 5 commits into
mainfrom
ec2-sandbox-containers-flag

Conversation

@peter-smith-phd

@peter-smith-phd peter-smith-phd commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Motivation

scripts/ec2-sandbox.sh starts up a throwaway Windows or Linux system on EC2 for testing lstk or LocalStack Toolkit. This PR adds some important features: run a real Docker Engine on Windows, build on ARM64 CPUs, and get a file onto the box without hand-rolling an scp command.

Solution

Four additions to the sandbox script.

  • --containers=docker|podman — Windows sandboxes now default to real Docker Engine, accessible via \\.\pipe\docker_engine, the same endpoint Docker Desktop uses, so docker.exe and lstk both find it with no configuration. --containers=podman keeps the previous behaviour of using Podman.

  • --arch=x64|arm64, required for create — Linux sandboxes can now be either ARM64 or x64 architecture. Windows is x64-only because ARM64 is not supported by Microsoft on their Windows server images (only on Windows Desktop).

  • copyto <os> [--arch <a>] <path> — copies a file, or a directory and its contents, onto the sandbox's desktop (User's on Windows, user's on Linux). Important for manually installing .vsix files or other necessary test files.

  • Every sandbox now also gets the AWS CLI, Terraform and the SAM CLI installed system-wide.

@peter-smith-phd peter-smith-phd added semver: patch docs: skip Pull request does not require documentation changes labels Sep 7, 2026
peter-smith-phd and others added 4 commits September 7, 2026 22:33
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@peter-smith-phd
peter-smith-phd force-pushed the ec2-sandbox-containers-flag branch from 9150267 to d7b270e Compare September 7, 2026 22:33
@peter-smith-phd
peter-smith-phd marked this pull request as ready for review September 7, 2026 22:33
@peter-smith-phd
peter-smith-phd requested a review from a team as a code owner September 7, 2026 22:33

@anisaoshafi anisaoshafi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for improving the setup 👏🏼
I'll be testing it this afternoon.

@peter-smith-phd peter-smith-phd self-assigned this Sep 8, 2026
@peter-smith-phd
peter-smith-phd merged commit 88c7d87 into main Sep 8, 2026
20 checks passed
@peter-smith-phd
peter-smith-phd deleted the ec2-sandbox-containers-flag branch September 8, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes semver: patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants