title: What's the proper way to retry commands in an AWS CFN template?
body: <p>Sometimes commands like <code>apt-get update -q</code> fail randomly in a cloudformation template user-data script. What's the proper way to retry them till they succeed?</p>