Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
feat: EC2 workspace root volume size can be configured (#1123)
Browse files Browse the repository at this point in the history
This is useful when using custom AMIs that are larger than the default AMIs due to containing additional applications

Co-authored-by: Sanket Dharwadkar <sdharwad@amazon.com>
  • Loading branch information
manics and SanketD92 authored Feb 14, 2023
1 parent 180ca39 commit 62b8ea8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ Parameters:
EncryptionKeyArn:
Type: String
Description: The ARN of the KMS encryption Key used to encrypt data in the instance
RootVolumeSize:
Type: Number
Description: The size of the root volume. Must be larger than the AMI size.
Default: 8
EgressStoreIamPolicyDocument:
Type: String
Description: The IAM policy for launched workstation to access egress store
Expand Down Expand Up @@ -187,7 +191,7 @@ Resources:
BlockDeviceMappings:
- DeviceName: /dev/xvda
Ebs:
VolumeSize: 8
VolumeSize: !Ref RootVolumeSize
Encrypted: true
KmsKeyId: !Ref EncryptionKeyArn
PropagateTagsToVolumeOnCreation: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ Parameters:
EncryptionKeyArn:
Type: String
Description: The ARN of the KMS encryption Key used to encrypt data in the instance
RootVolumeSize:
Type: Number
Description: The size of the root volume. Must be larger than the AMI size.
Default: 30
RaidDataVolumeSize:
Type: Number
Description: The size of each volume in the RAID array used to hold studies data, in GiB. The template creates a striped volume (RAID 0) by joining 8 volumes. The total size of the data volume would be roughly 8 times the size specified here.
Expand Down Expand Up @@ -196,7 +200,7 @@ Resources:
BlockDeviceMappings:
- DeviceName: /dev/sda1
Ebs:
VolumeSize: 30
VolumeSize: !Ref RootVolumeSize
VolumeType: gp2
Encrypted: true
KmsKeyId: !Ref EncryptionKeyArn
Expand Down

0 comments on commit 62b8ea8

Please sign in to comment.