Enable to resolve no space on device for Elasticbean stalk deployment

0

Hi,

I am trying to deploy a deep learning flask application which is running into a storage issue. I tried to fix it with addition config file but it does not seem to work and error is same as before("no space on device"). If I increase EBS volume from 10 to 40, then it works fine for an EC2 instance. As this should be increased automatically instead of manually in case there would be upscaling of resources, I am not sure how to do it. Can anyone help?

file add-ebs-volume.config

commands:
  01mkfs:
    command: "mkfs -t ext3 /dev/sdh"
  02mkdir:
    command: "mkdir /media/volume1"
  03mount:
    command: "mount /dev/sdh /media/volume1"

option_settings:
  - namespace: aws:autoscaling:launchconfiguration
    option_name: BlockDeviceMappings
    value: /dev/sdh=:100
asked a year ago635 views
1 Answer
1
Accepted Answer

You can set a bigger volume size in the Benastalk environment configuration: Elastic Beanstalk -> Environments -> examle-env -> Configuration -> Instances -> Edit -> Root volume (boot device) -> Size Then instances will be recreated with a new EBS volumes.

profile picture
EXPERT
answered a year ago
profile picture
EXPERT
Artem
reviewed a month ago
profile picture
EXPERT
reviewed 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions