lib/ec2/ec2.js
function getUserdataForAmi_(username, upNamespace, envVars_, origUsername) {
  var envVars = cleanEnvVars(upNamespace, envVars_);

  var script  = [
                "#!/bin/bash -ex",
                ""
  ];
  _.each(envVars, function(value, key) {
    script.push("/usr/local/bin/yoshi-set-env "+key+" "+value);
  });
  script.push(  "");

  console.error(script);
  return script;
}
function getUserdataForAmi_(username, upNamespace, envVars_, origUsername) {
  var envVars = cleanEnvVars(upNamespace, envVars_);

  var script  = [
                "#!/bin/bash -ex",
                ""
  ];
  _.each(envVars, function(value, key) {
    script.push("/usr/local/bin/yoshi-set-env "+key+" "+value);
  });
  script.push(  "");

  console.error(script);
  return script;
}
function getUserdataForAmi_ ( username , upNamespace , envVars_ , origUsername ) { var envVars = cleanEnvVars ( upNamespace , envVars_ ) ; var script = [ "#!/bin/bash -ex" , "" ] ; _ . each ( envVars , function ( value , key ) { script . push ( "/usr/local/bin/yoshi-set-env " + key + " " + value ) ; } ) ; script . push ( "" ) ; console . error ( script ) ; return script ; }
The userdata for when starting an instance from a created AMI.
The userdata for when starting an instance from a created AMI .