Skip to content

aws-samples/sagemaker-studio-code-editor-template

CFn template for SageMaker Studio Code Editor

This sample CloudFormation template creates an Amazon SageMaker Studio Code Editor, which provides a cloud-based IDE based on Code-OSS, Visual Studio Code - Open Source. It has the AWS Toolkit for VS Code extension pre-installed, which enables connections to AWS services such as Amazon Q Developer.

This template includes an additional feature that automatically stops Code Editor after a certain period of inactivity.

Parameters

  • AutoStopIdleTimeInMinutes : Idle time before auto-stop of Code Editor (disabled if 0)
  • EbsSizeInGb : EBS volume size of Code Editor
  • InstanceType : Instance type of Code Editor
  • UseDefaultVpc : Whether to use the default VPC (true) or create a new one (false)

Deployment (1-click)

To deploy the Code Editor, click the "Launch Stack" button for the corresponding region. The deployment will take approximately 5-10 minutes.

AWS Region CloudFormation 1-Click URL
us-east-1 Cloudformation Launch Stack button
us-east-2 Cloudformation Launch Stack button
us-west-1 Cloudformation Launch Stack button
us-west-2 Cloudformation Launch Stack button
ap-northeast-1 Cloudformation Launch Stack button
ap-northeast-2 Cloudformation Launch Stack button
ap-northeast-3 Cloudformation Launch Stack button
ap-southeast-1 Cloudformation Launch Stack button
ap-southeast-2 Cloudformation Launch Stack button
ap-south-1 Cloudformation Launch Stack button
eu-north-1 Cloudformation Launch Stack button
eu-central-1 Cloudformation Launch Stack button
eu-west-1 Cloudformation Launch Stack button
eu-west-2 Cloudformation Launch Stack button
eu-west-3 Cloudformation Launch Stack button
sa-east-1 Cloudformation Launch Stack button
ca-central-1 Cloudformation Launch Stack button

Deployment (CLI)

aws cloudformation deploy \
    --template-file CodeEditorStack.template.yaml \
    --stack-name CodeEditorStack \
    --capabilities CAPABILITY_NAMED_IAM

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.