logo-MindMajix
PostAWSAWS
k
kavya A

Posted on 19th June 2024|118 views

0
votes

Can The Size Of The Root Disk Be Increased In AWS EC2 To Use Along With Elastic Beanstalk?

 If so How? Please explain.

1 answers
Answers
P
Aryan Sharma

Posted on 19th June 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.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number