Posted on 10th September 2024| views
Yes, it can be done. Using the given extension below:
Resources:
AWSEBAutoScalingLaunchConfiguration:
Type: AWS::AutoScaling::LaunchConfiguration
Properties:
BlockDeviceMappings:
- DeviceName: /dev/sda1
Ebs:
VolumeSize:
15
The above-mentioned snippet must be added to the app source which you are using in a file at path .ebextensions/01-change-root-volume-size.config. Your file can be named according to your convenience but it should be in .ebextensionsdirectory and must have .config suffix. Updating the environment with the mentioned new app source will terminate work and start a new one with the desired size.