Scan your whole stack
From OX Research Newsroom
Are you using cdk-vscode-server?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.69
cdk-vscode-server was last scanned on 23 Nov 2026 at version 0.1.69. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.69 LATEST | 23 Nov 2026 | No rules fired |
| 0.1.68 | 23 Nov 2026 | No rules fired |
| 0.1.67 | 22 Nov 2026 | No rules fired |
| 0.1.66 | 22 Nov 2026 | Not shown |
| 0.1.65 | 21 Nov 2026 | Not shown |
Findings for v0.1.69. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.69; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Running your dev IDE vscode on AWS for development and workshop purposes.
[!Note] This construct is designed for workshop purposes and does not fulfill all security and authentication best practices.
This is an early version of the package. The API will change while I
we implement new features. Therefore make sure you use an exact version in your
package.json before it reaches 1.0.0.
Features
Usage
Solution Design
Inspiration
git, docker, awscli nodejs and python are pre-installed on the EC2 instance.additional*. They allow you to extend the configuration to your needs. There are more to come...Actually we supported 2 modes:
The following steps get you started:
awscdk-app vianpx projen new awscdk-app-ts --package-manager=npm
@mavogel/cdk-vscode-server as a dependency to your project in the .projenrc.ts filenpx projen to install itsrc/main.ts file:import { App, Stack, StackProps } from 'aws-cdk-lib';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as iam from 'aws-cdk-lib/aws-iam';
import { Construct } from 'constructs';
import {
LinuxArchitectureType,
LinuxFlavorType,
VSCodeServer
} from '@mavogel/cdk-vscode-server';
export class MyStack extends Stack {
constructor(scope: Construct, id: string, props: StackProps = {}) {
super(scope, id, props);
new VSCodeServer(this, 'vscode', {
// for example (or simply use the defaults by not setting the properties)
instanceVolumeSize: 8,
instanceClass: ec2.InstanceClass.M7G,
instanceSize: ec2.InstanceSize.LARGE,
instanceOperatingSystem: LinuxFlavorType.UBUNTU_24, // or UBUNTU_26, AMAZON_LINUX_2023
instanceCpuArchitecture: LinuxArchitectureType.ARM,
// 👇🏽 or if you want to give the InstanceRole more permissions
additionalInstanceRolePolicies: [
new iam.PolicyStatement({
effect: iam.Effect.ALLOW,
actions: [
'codebuild:*',
],
resources: [
`arn:aws:codebuild:*:${Stack.of(this).account}:*/*`,
],
}),
]
// and more... 💡
});
}
}
const env = {
account: '123456789912',
region: 'eu-central-1',
};
const app = new App();
new MyStack(app, 'vscode-server', { env });
app.synth();
and deploy it
npx projen build
npx projen deploy
with the output
✨ Deployment time: 509.87s
Outputs:
dev.vscodedomainName6729AA39 = https://d1foo65bar4baz.cloudfront.net/?folder=/Workshop
dev.vscodepassword64FBCA12 = foobarbaz
See the examples folder for more inspiration.
Set the operating system with instanceOperatingSystem and the CPU architecture with instanceCpuArchitecture (ARM or AMD64). Only Ubuntu LTS releases are supported:
LinuxFlavorType |
OS | Notes |
|---|---|---|
UBUNTU_24 (default) |
Ubuntu 24.04 LTS (noble) | Installs .NET SDK 8.0 |
UBUNTU_26 |
Ubuntu 26.04 LTS (resolute) | Installs .NET SDK 10.0, since 8.0 is not in the Ubuntu 26 archive |
AMAZON_LINUX_2023 |
Amazon Linux 2023 | Installs .NET SDK 8.0 |
Upgrading: UBUNTU_22 and UBUNTU_25 were removed; only the two current Ubuntu LTS releases (24.04 and 26.04) are supported, and 25.04 was not an LTS release. If your stack uses either removed value, switch to UBUNTU_24 or UBUNTU_26. Changing the operating system replaces the EC2 instance.
Every log group the construct creates expires its logs after 5 days and is deleted together with the stack. That covers the Lambda functions, the custom resource providers and the install output (/aws/ssm/<document>). They are deleted after all other resources of the stack, because Lambda delivers its last logs a few seconds late and would recreate an already deleted group without retention. Change both with:
import { RemovalPolicy } from 'aws-cdk-lib';
import { RetentionDays } from 'aws-cdk-lib/aws-logs';
new VSCodeServer(this, 'vscode', {
logRetention: RetentionDays.ONE_MONTH, // default: FIVE_DAYS, INFINITE never expires the logs
logRemovalPolicy: RemovalPolicy.RETAIN, // default: DESTROY, RETAIN keeps the logs after the stack is deleted
});
Upgrading: the Lambda functions now log to log groups of the stack. The groups they used before (/aws/lambda/<function name>) are not touched and keep their old retention; delete them if you do not need the logs. If you have several VSCodeServer in one stack, the setting of the first one applies to the shared log group of the VPC default security group provider.
Clone a git repository into the VS Code Server's home folder during instance setup - perfect for workshops or development environments with starter code:
new VSCodeServer(this, 'vscode', {
// Clone a git repository into the home folder
repoUrl: 'https://github.com/aws-samples/my-workshop-repo.git',
// Optional: customize the home folder path (default: /Workshop)
homeFolder: '/MyWorkshop',
// Optional: specify VS Code user (default: vscode-user)
vscodeUser: 'workshop-user',
});
What happens:
Use cases:
Repository requirements:
git clone during instance initializationFor complete examples, see examples/.
You can configure your VS Code Server with a custom domain name instead of using the default CloudFront domain. The construct supports three different configuration options:
new VSCodeServer(this, 'vscode', {
domainName: 'vscode.example.com',
hostedZoneId: 'Z123EXAMPLE456', // optional - will auto-discover if not provided
autoCreateCertificate: true,
});
This will:
new VSCodeServer(this, 'vscode', {
domainName: 'vscode.example.com',
hostedZoneId: 'Z123EXAMPLE456',
certificateArn: 'arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012',
});
Requirements:
new VSCodeServer(this, 'vscode', {
// No domain configuration - uses CloudFront default domain
});
For complete examples, see examples/custom-domain/main.ts.
[!Important] There are issues with copy pasting into the VSCode terminal within the Firefox browser (2025-01-12)
Save up to 75% on costs by automatically stopping EC2 instances when idle:
new VSCodeServer(this, 'vscode', {
enableAutoStop: true, // Enable auto-stop feature
idleTimeoutMinutes: 30, // Stop after 30 minutes of no activity (default)
idleCheckIntervalMinutes: 5, // Check for idle activity every 5 minutes (default)
});
How it works:
Cost Savings Example:
Additional costs:
Architecture Components:
Integration Testing:
The stop-on-idle functionality includes comprehensive integration tests (integ-tests/integ.stop-on-idle.ts) that verify the complete workflow:
This 4-phase test ensures that:
Run integration tests with:
npm run integ-test
Extend the standard VS Code Server installation with your own custom shell commands - perfect for installing workshop-specific tools, configuring development environments, or running setup scripts:
new VSCodeServer(this, 'vscode', {
// Add custom installation steps that run after standard setup
customInstallSteps: [
{
name: 'InstallWorkshopTools',
commands: [
'#!/bin/bash',
'echo "Installing workshop-specific tools"',
// Install additional software
'curl -fsSL https://get.docker.com | sh',
'usermod -aG docker ubuntu',
// Configure environment
'echo "export WORKSHOP_ENV=production" >> /home/ubuntu/.bashrc',
],
},
{
name: 'CloneStarterCode',
commands: [
'#!/bin/bash',
'cd /home/ubuntu',
'git clone https://github.com/my-org/workshop-starter.git',
'chown -R ubuntu:ubuntu workshop-starter',
],
},
],
});
Key Features:
Common Use Cases:
Supported Operating Systems:
Requirements:
For complete examples, see examples/custom-install-steps/main.ts.
This project was created based on the following inspiration
Hi, I’m Manuel, an AWS expert passionate about empowering businesses with scalable, resilient, and cost-optimized cloud solutions. With MV Consulting, I specialize in crafting tailored AWS architectures and DevOps-driven workflows that not only meet your current needs but grow with you.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.