[{"data":1,"prerenderedAt":60},["ShallowReactive",2],{"pattern-lambda-microvms-code-server":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":20,"extension":21,"framework":22,"gitHub":23,"highlight":6,"introBox":29,"language":36,"level":37,"meta":38,"patternArch":39,"resources":44,"s3URL":6,"services":6,"stem":55,"testing":56,"videoId":6,"__hash__":59},"patterns\u002Fpatterns\u002Flambda-microvms-code-server.json","VS Code Server (code-server) on AWS Lambda MicroVMs",null,{"text":8},[9],"See Cleanup section in README.md",[11],"content\u002Fcontributors\u002Fricardo-marques.json",{"headline":13,"text":14},"Deploy the pattern",[15,16,17,18,19],"pip3 install aiohttp","export ACCOUNT_ID=\"YOUR-ACCOUNT-ID\"","export AWS_REGION=\"YOUR-ACCOUNT-REGION\"","chmod +x deploy.sh","bash deploy.sh","Deploy VS Code Server (code-server) inside AWS Lambda MicroVMs for a full browser-based IDE running in an isolated sandbox.","json","AWS CLI",{"template":24},{"repoURL":25,"templateURL":26,"projectFolder":27,"templateFile":28},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-microvms-code-server","serverless-patterns\u002Flambda-microvms-code-server","lambda-microvms-code-server","template.yaml",{"headline":30,"text":31},"How it works",[32,33,34,35],"This pattern deploys VS Code Server (code-server) inside Lambda MicroVMs, giving you a full IDE accessible from your browser running in an isolated Firecracker sandbox.","The Lambda MicroVM image is built declaratively via CloudFormation using the AWS::Lambda::MicrovmImage resource. During the build, Lambda executes the Dockerfile server-side (installs code-server, Python, AWS CLI), waits for the \u002Fready lifecycle hook on port 9000, and takes a snapshot for sub-second resume.","Lifecycle hooks (run, suspend, resume, terminate) on port 9000 manage the MicroVM state transitions — enabling graceful suspend\u002Fresume without losing IDE state. The VM auto-suspends after idle and resumes on demand.","A local Python proxy (proxy.py) injects the auth token header so your browser can reach the MicroVM endpoint over HTTP and WebSocket, giving you a seamless VS Code experience.","Python","200",{},{"icon1":40},{"x":41,"y":41,"service":42,"label":43},50,"lambda-microvms","AWS Lambda MicroVMs",{"bullets":45},[46,49,52],{"text":47,"link":48},"AWS Lambda MicroVMs Documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Flambda-microvms.html",{"text":50,"link":51},"code-server (VS Code in the browser)","https:\u002F\u002Fgithub.com\u002Fcoder\u002Fcode-server",{"text":53,"link":54},"Firecracker - Secure and fast microVMs for serverless computing","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fopensource\u002Ffirecracker-open-source-secure-fast-microvm-serverless\u002F","patterns\u002Flambda-microvms-code-server",{"text":57},[58],"See the GitHub repo for detailed testing instructions.","ZgtcbjgFthvTtjVowLJ_h3tdF368yoBFj67SOJaXESI",1782210918017]