As discussed, all the steps in this recipe are taken from the EC2 docs as to good practice.  The sed -i thing is fixed.