Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    E

    Eric Hammond

    alestic.com · Personal blog · on HN since 2009

    Eric Hammond writes practical guides on AWS, covering EC2, S3, Glacier and Lambda, with a focus on Ubuntu.

    Visit blogHN submissions
    DevOps & CloudOpen Source & Linux
    What HN says

    Commenters call it a great resource for AWS and Lambda, well regarded in the AWS developer community, and recommend it for Ubuntu-focused EC2 solutions.

    Stats for nerds
    50HN people shared it
    45linked in comments
    176story points
    Jun 2020last shared
    2010people per year2020

    Top posts on HN

    1. 1
      How Much Does It Cost to Run a Serverless API on AWS?
      6 people · 27 points · first shared 2016 · 4 comments on HN
    2. 2
      1 TB of Memory in 1 Minute with 1 Command
      1 person · 16 points · first shared 2009 · Discussion on HN
    3. 3
      How to automate EC2 instance setup with user-data scripts
      1 person · 16 points · first shared 2009 · 2 comments on HN
    4. 4
      Creating Public AMIs Securely for EC2
      1 person · 16 points · first shared 2011 · 2 comments on HN
    5. 5
      AWS Git-Backed Static Website
      3 people · 12 points · first shared 2016 · 1 comments on HN
    6. 6
      Exploring the AWS Lambda Runtime Environment
      2 people · 9 points · first shared 2014 · 1 comments on HN
    7. 7
      Ubuntu and Debian AMIs for Amazon EC2
      6 people · 8 points · first shared 2009 · 2 comments on HN
    8. 8
      Schedule recurring AWS Lambda invocations with the Unreliable Town Clock
      2 people · 8 points · first shared 2015 · 2 comments on HN
    9. 9
      Throw Away the Password to Your AWS Account
      1 person · 8 points · first shared 2014 · 2 comments on HN
    10. 10
      Cost of Transitioning S3 Objects to Glacier
      3 people · 7 points · first shared 2012 · Discussion on HN

    What HN people wrote when they linked it

    • pwApr 2011

      What I like most about developing on EC2 is the ability to save an development environment as an Amazon Machine Image (AMI), and then spin up instances of it as needed. I can fine-tune the environment over time (just spin up a new instance, make changes, and save a new AMI), as well as have different environments for different types of development.

      I think you could do something similar with Slicehost/Linode using disk images and configuration profiles, but it doesn't seem they offer anything like Amazon's machine images. Correct me if I'm wrong, though.

      Of course, the flip-side of all this is that any individual instance of an AMI is inherently ephemeral, and you need to treat it as such. Even the reliability claims of EBS are fairly weak. [1] That means EC2 instance storage, even EBS storage attached to an instance, isn't truly persistent, and I haven't quite ironed out my system for dealing with this.

      You'll probably want to run your own Git server [2] and commit code as it's completed. That still leaves the possibility of data loss if your instance dies after you've written code, but before you've made a commit. You could just take periodic snapshots of the EBS volume where your in-progress code resides, but whatever period you choose for the frequency (like every 30 minutes) is equal to the amount of work you could lose. And that sort of constant backup isn't really what snapshots are meant for anyway. [3] I think the ideal solution would be to run Dropbox to get…

    • hubmoNov 2012

      I know this is a little late for your case but you can migrate snapshots from 1 region to another. We spend sunday moving from US-East 1 to US-West 1 and took 2 hours to setup our entire infrastructure consisting of 20 servers & about 180 GB database

      There are several options

      1. Manually - http://alestic.com/2010/10/ec2-ami-copy

      2. Automatically via Scripts
      a) migrate-ebs-image.pl - http://search.cpan.org/~lds/VM-EC2/bin/migrate-ebs-image.pl
      b) CloudyScript Migrate SnapShot - https://cloudyscripts.com/tool/show/4
      c) CloudyScript Migrate AMI - https://cloudyscripts.com/tool/show/5

      3. Commercial Services
      a) http://ylastic.com/
      b) RightScale

      * ylastic is really cheap at $25 / month
      * I used the perl script migrate-ebs-image.pl, super simple to install and use.
      * CloudyScripts has open sourced their Ruby gem so you can build on top of it. They also have a free web form you can just use (but may not be secure enough). But you can launch their AMI in your own instance which should be secure

      Hope that helps for next time!

    • oskarpearsonDec 2012

      I've recently been looking at it too, and trying to find clarification of the retrieval fee. It seems there's a lot of (potential) misinformation, though I'm still trying to verify that.

      My guess is the best idea is to upload to S3, using whatever tools you can for that, and then archive from S3 to Glacier using the AWS lifecycle rules.

      See previous discussion at http://news.ycombinator.com/item?id=4411536 and http://liangzan.net/aws-glacier-calculator/ - my concern is that they don't seem to match Amazon's Glacier calculator at http://calculator.s3.amazonaws.com/calc5.html

      http://alestic.com/2012/12/s3-glacier-costs also seems relevant.

      So be sure you know what you're getting yourself into, otherwise you could end up with thousands of USD in billing.

      If you get clarity on the retrieval fee, please let me/us know.

    • crbJan 2013

      Two reasons come to mind:

      * the failure rate of an EBS volume (assuming a bug-free EBS software stack!) should be less than any one spinning disk

      * these machines don't have disk space set aside for copying the root volumes to them from S3 to boot. (There's a 10GB limit, and to allow for this to be somewhere, you'd have to have another SSD, or partition the existing ones.)

      There's a good blog post about it on Rightscale: http://blog.rightscale.com/2012/11/02/new-ec2-instance-types-and-coordinated-failures-in-the-cloud/

      esh's "You Should Use EBS Boot Instances" also lays out a number of good reasons to use EBS for boot: http://alestic.com/2012/01/ec2-ebs-boot-recommended

      You at least have two 120GB ephemeral SSDs to play with when you're running - a luxury you don't have on the new M3 classes.

    • shlomoMay 2010

      This article includes a script that will perform a consistent snapshot of an XFS-formatted EBS drive (in linux).

      http://alestic.com/2009/09/ec2-consistent-snapshot

      Consistent snapshots are needed when the disk contains multiple files that must be kept in sync with each other - such as a database's data files and the journal. If your DB gets its disk snapshotted while these files are out of sync, the DB will need to recover the missing data by replaying the journal. Not all DB's can do this reliably for all types of changes (e.g. MySQL's MyISAM engine is fragile in this regard). So you need to make sure that the files in the snapshot all reflect a consistent state of the disk.

    • malandrewFeb 2013

      Very cool. Out of curiosity, are there any plans to make it easy to provision/create AWS boxes securely via chroot via Eric Hammond's approaches at Alestic? Currently it is a very tedious process to make a secure image on Amazon so that no credentials leak into history and whatnot, it is a tedious process. Making this easy would go a long way to making it trivial to use vagrant to safely publish public boxes for EC2.

      More details on this problem here:
      http://news.ycombinator.com/item?id=4457336

      Examples of Eric Hammond's process at Alestic:
      http://alestic.com/alestic-git/
      https://github.com/alestic/alestic-git

    Related

    Werner Vogelsallthingsdistributed.com297 people

    Continuous reinvention: A brief history of block storage at AWS

    Werner Vogels
    Personal · last shared 2026
    AWS Blogaws.typepad.com234 people

    Host Your Static Website on Amazon S3

    AWS Blog
    Company · last shared 2014
    RightScale Blogblog.rightscale.com41 people

    AWS Responds with Price Cuts: Google vs AWS Pricing Round 2

    RightScale Blog
    Company · last shared 2017
    A Cloud Guru Blogread.acloud.guru53 people

    Things to know before using AWS’s Elasticsearch Service

    A Cloud Guru Blog
    Company · last shared 2020
    Alex DeBriealexdebrie.com28 people

    AWS API Performance Comparison: Serverless vs. Containers

    Alex DeBrie
    Personal · last shared 2024
    Ubuntu Insightsinsights.ubuntu.com170 people

    Growing Ubuntu for Cloud and IoT, Rather Than Phone and Convergence

    Ubuntu Insights
    Company · last shared 2018
    Lambda Labs Bloglambdalabs.com94 people

    V100 Server On-Prem vs. AWS P3 Instance Cost Comparison

    Lambda Labs Blog
    Company · last shared 2025
    Last Week in AWSlastweekinaws.com184 people

    Why I Turned Down an AWS Job Offer

    Last Week in AWS
    Personal · last shared 2026