title: AWSCloudFormation - cfn-init failed to run command `ruby`
body: <p>I have a simple cloudformation script where I am trying to run a ruby script as a background process at boot-time.</p>
  
  <p>The relevant section of the script is</p>
  
  <pre><code>"AWS::CloudFormation::Init" : {
                      "config" : {
                          "sources" : {
                              "/etc/scripts" : "http://bootstrap-artifacts.s3.amazonaws.com/scripts.zip"
                          },
                          "commands" : {
                            "1" : {
                              "command" : "cd /etc/scripts/agent"
                            },
                            "2-start" : {
                              "command" : "nohup ruby agent.rb &amp;"
                            }
                          }
                      }
                  }
  </code></pre>
  
  <p>Just to confirm that the zip file is downloaded and the scripts are present in the correct directory. Also my AMI has <strong>ruby 2.0.0</strong> installed for all users.</p>
  
  <p>I keep on getting <code>nohup: failed to run command 'ruby': No such file or directory
  </code> in the <strong>\var\log\cfn-init.log</strong> file </p>
  
  <p>Thanks for help!</p>