Closed thomashoneyman closed 4 years ago
It looks like version 1.7 of NixOps (which I was using) has the ebsInitialRootDiskSize
option available. On master, however, NixOps has switched to requiring the nixops-aws
plugin in order to make this option available.
If I build NixOps from the master branch and include the aws plugin, as in:
$ nix-build release.nix -A build.x86_64-linux --arg p "(p: [ p.aws ])"
...then, my above issue disappears. Using the ebsInitialRootDiskSize = 20;
option produces a volume of size 20GB.
I am still not sure why the version I installed from the 19.09 release channel, version 1.7, states that the option is available in the manual but does not work if the option is actually used. However, given that this appears to work correctly on master I'll close this issue.
I attempted to use the
deployment.ec2.ebsInitialRootDiskSize
option to deploy a newt2.nano
EC2 instance with 50GB of disk space instead of the default, which I believed was 8GB.However, regardless of what I set this option to, the Elastic Beanstalk volume is always created with the size 3GB (confirmed with
df -h
andlsblk
while ssh-ed into the EC2, and manually in the AWS console).Steps to reproduce
The
simple-twitter
repository serves as a simple, deployable reproduction of this issue. The issue linked below has a full description of my attempts to use this option to increase the disk size of an EC2: https://github.com/Gabriel439/simple-twitter/issues/1#issue-531586406For posterity's sake, here are excerpted steps from that issue.
In my case this fails with the error
error: writing to file: No space left on device
. That appears to be because the EC2 has only 3GB of disk space and it becomes full during the deployment.I then try to bump up the disk space using
ebsInitialRootDiskSize
:The end result is the identical disk as before -- the option appears to have no effect. If I then use
nix-collect-garbage
on the EC2 to save some disk space:...it's clear that
/dev/disk/by-label/nixos
is being used for the Nix store, and that runningnix-collect-garbage
reduces its previous 100% use down to 38%. The disk only has 3GB of space, the the same as thexvda
disk displayed bylsblk
, and nowhere near the 50GB I would expect to see having usedebsInitialRootDiskSize
.This is confirmed by looking in the AWS console after deploying the instance, where I see a running volume of size 3GB instead of the volume of size 50GB I would expect.
Ideal outcome
I would like to use the
ebsInitialRootDiskSize
or learn about another option available innixops
that would allow me to create a new EC2 instance with more than 3GB of disk space so that I can deploy the simple-twitter project.