Add ec2-sandbox.sh for throwaway Windows and Linux dev sandboxes - #480
Conversation
Creates a single disposable EC2 instance, reachable over RDP, with VS Code installed and ready to use. Supports create, delete and info for either a Windows or a Linux sandbox. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
anisaoshafi
left a comment
There was a problem hiding this comment.
Thanks a lot, Peter 🙌🏼
Tested with a windows instance, worked like a charm 👏🏼
Connecting was easy, this helps a lot.
|
Nice! Was working on something similar the last two days, but kept hitting the same limitation.
I've been running into the same problem and from my point of view, the intention was to test a realistic customer environment (someone using Windows on e.g. their Laptop). AFAIK we'd need to create a VM on Azure for a proper Client image or bring our own license with a standard client image loaded on EC2, but there's no pre-baked client images available on AWS as you said. I'm not versed well enough in the Windows ecosystem to say how much of an is sue that is in terms of faithful reproduction of a typical user environment. Not being able to use Docker Desktop seems to be very limiting when I assume that's what the majority is using right now.
Legend: ✓ covered · ~ partial · ✗ not covered
|
I totally agree - I think this will give us 80% confidence that it runs on Windows, but the remaining 20% of possible problems will be related to not using Docker Desktop. We should treat this script as a nice to have, but we still need to have Docker Desktop running on Windows Desktop to get that 100% confidence. What this solution does buy us:
Maybe we need a similar script that creates something on Azure? |
Adds
scripts/ec2-sandbox.sh, which stands up a disposable EC2 instance to do manual testing against, and tears it down again when you're finished testing. You get a fresh Windows or Linux machine, reachable over RDP, with a fresh install of VS Code ready to use. One sandbox per OS per region, so a Windows and a Linux sandbox can run side by side.Usage
create <os>delete <os>info <os>Options:
Each sandbox has two logins: an admin account, and an unprivileged
User(Windows) /user(Linux). You probably want to use theUseraccount for your manual testing.Examples
Notes
--helpfor the full option list.deletewhen you are finished.