Workspace Design
For every user in our platform, we would provision:
- An EC2 VM with RDP Access
The user once enrolled into a micro-experience, can choose to either use VSCode in the browser or RDP into the machine and work.
In order to support this, the users home directory will be mounted on an NFS File Share (EFS on AWS) so the user can seamlessly switch between VCode in browser and the EC2 VM.
Base docker image/VM image:
- certain software is installed as a part of the base image in the contiainer and the VM. There may be some shared software accross the VM and container that will have to be installed (ex: filebeat, logstash, java, etc)
Personalization:
- when the container/VM is brought up for a user the runtime is personalised for the user (ex: ssh keys, password, etc).
- Cloudformation template would bring up an NFS Share on EFS for all users
This NFS mount would be used to mount each users home directory into the runtime (container/VM).
Cloudformation Template will to bring up EC2 VMs on trigger:
- User clicks on GetVM in the frontend
- Trigger cloudformation stack (taking some params from backend)
- Bring up EC2 instance with specified config & base image
- Attatch public ip, disk etc to new instance
- Ensure user home dir is mounted from the NFS mount
- Run the workspace personalisation ansible script to set ssh keys, etx (with params from the CF stack trigger)
- Ansible script should raise event when ready to backend
- Backend will persist the metadata from ansible script to db
- Inform frontend through websocket.
//TBA
If there's been an abuse, please report it here