This directory contains scripts and instructions for setting up a VSCode Server development environment for the AWS Serverless SaaS Workshop.
sam build -t ../event-engine-assets/vscode-module-sam-template.yaml --use-container
sam deploy --stack-name serverless-saas-vscode-env --capabilities CAPABILITY_NAMED_IAM# Using the samconfig.toml in the event-engine-assets directory
sam build -t ../event-engine-assets/vscode-module-sam-template.yaml --use-container
sam deploy --config-file ../event-engine-assets/samconfig.toml
# Or using the samconfig.toml in this directory
sam build -t ../event-engine-assets/vscode-module-sam-template.yaml --use-container
sam deploy --config-file samconfig.tomlAfter deployment completes, you can access the VSCode Server environment using the URL and password provided in the CloudFormation outputs. The URL will open VSCode Server at the /Workshop directory, where the aws-serverless-saas-workshop repository has been cloned.
This script installs all the necessary tools and dependencies for the workshop, including:
- Python 3.8+
- AWS CLI
- SAM CLI
- Node.js
- CDK CLI
- git-remote-codecommit
- VSCode Server specific requirements (nginx, code-server)
This script checks if all the required tools and dependencies are installed with the correct versions. It also verifies that the VSCode Server instance is properly configured.
This script increases the EBS volume size of the VSCode Server instance to 50 GiB.
- Deploy the VSCode Server environment using one of the deployment options above.
- Connect to the VSCode Server environment using the URL and password provided in the CloudFormation outputs.
- Run the pre-requisites-versions-check.sh script to verify that all required tools are installed:
cd VSCodeSetup chmod +x pre-requisites-versions-check.sh ./pre-requisites-versions-check.sh - If any tools are missing or have incorrect versions, run the pre-requisites.sh script:
chmod +x pre-requisites.sh ./pre-requisites.sh
- If you need to increase the disk size, run the increase-disk-size.sh script:
chmod +x increase-disk-size.sh ./increase-disk-size.sh
VSCode Server provides several advantages over Cloud9:
- Modern, feature-rich IDE experience
- Better performance and stability
- Continued support (Cloud9 is being deprecated)
- More customization options
- Better extension support