widdix / aws-s3-virusscan

Antivirus for Amazon S3
https://bucketav.com/
Apache License 2.0
525 stars 127 forks source link

Switch to Micro #54

Closed slynch401k closed 5 years ago

slynch401k commented 5 years ago

How do I downgrade from small to micro? I saw this but I do not know how to change a running implementation.

To use t2.micro (free tier) you can add this to the UserData as workaround:

!/bin/bash -x

... /usr/bin/fallocate -l 1G /swapfile && /bin/chmod 600 /swapfile && /sbin/mkswap /swapfile && /sbin/swapon /swapfile