Check out aws_helper for this - we use it in other commands.