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

1 answer to this question.

0 votes

This can be done using the following ebextension snippet.

        Type: AWS::AutoScaling::LaunchConfiguration
               - DeviceName: /dev/sda1

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
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 You can't install the certificates ...READ MORE

answered Jul 19, 2018 in AWS by Priyaj
• 58,140 points
+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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+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,550 points
+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
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