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,090 points
2,926 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,640 points

Related Questions In AWS

0 votes
1 answer
0 votes
0 answers

How can I migrate Elastic beanstalk env from one region to another on AWS?

I need help! How can i migrate ...READ MORE

Sep 18, 2020 in AWS by anonymous
• 19,610 points
1,511 views
0 votes
1 answer
+1 vote
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
• 58,090 points
1,592 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,506 views
+1 vote
2 answers

AWS CloudWatch Logs in Docker

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

answered Sep 7, 2018 in AWS by bug_seeker
• 15,520 points
1,738 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,640 points
1,970 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,640 points
1,611 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP