How can I just increase the size of my root disk on AWS EC2 for use with Elastic Beanstalk?

0 votes

On deployment, I copy datafiles from S3 to my root drive to be used by Tomcat application. The problem is, root disk is only 8GB and my datafiles will soon be larger than that. I want to increase the size of the root disk a little without moving to a more expensive EC2instance. Right now using m3.medium.

I cannot modify an already running instance by manually adding another disk. I'm using EB load balanced so instances may come and go to meet demand. So, how do I increase the size of root disk?

Nov 12, 2018 in AWS by datageek
• 3,000 points
100 views

1 answer to this question.

0 votes

This can be done using the following ebextension snippet.

Resources:
    AWSEBAutoScalingLaunchConfiguration:
        Type: AWS::AutoScaling::LaunchConfiguration
        Properties:
            BlockDeviceMappings:
               - DeviceName: /dev/sda1
                 Ebs:
                     VolumeSize:
                        15

Add this snippet to your app source in a file at path .ebextensions/01-change-root-volume-size.config. You can name the file whatever you want but it should be in the .ebextensionsdirectory and should have a suffix of .config.

Update your environment with this new app source. This will terminate your current instance and start a new one with the size you want.

answered Nov 12, 2018 by Archana
• 5,480 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to add SSL certificate to AWS EC2 with the help of new AWS Certificate Manager service

refer this link  https://aws.amazon.com/certificate-manager/faqs/ You can't install the certificates ...READ MORE

answered Jul 19, 2018 in AWS by Priyaj
• 56,160 points
45 views
0 votes
1 answer

AWS Elastic Beanstalk - How to increase instance disk capacity?

The 8 GB diskthat you are seeing ...READ MORE

answered Sep 3, 2018 in AWS by anonymous
111 views
+13 votes
2 answers
+1 vote
2 answers

AWS CloudWatch Logs in Docker

The awslogs works without using ECS. you need to configure ...READ MORE

answered Sep 6, 2018 in AWS by bug_seeker
• 15,310 points
275 views
+1 vote
1 answer

How to make an application private on AWS Elastic Beanstalk?

Like you said by default, your application ...READ MORE

answered Oct 25, 2018 in AWS by Archana
• 5,480 points
24 views
0 votes
1 answer

How do I use AWS sdk definitions for TypeScript?

Hey, slight modification with what you have ...READ MORE

answered Dec 3, 2018 in AWS by Archana
• 5,480 points
252 views