anchor.diff:              "    --access-key ", { "Ref" : "CFNKeys" },
               "    --secret-key ", { "Fn::GetAtt" : ["CFNKeys", "SecretAccessKey"]}, "\n",
               "echo \"`ifconfig eth0 | grep 'inet addr' | cut -d ':' -f 2 | cut -d ' ' -f 1` `hostname -s` `hostname -f`\" >> /etc/hosts", "\n",
  -            "/root/", {"Ref" : "PEId"},"/puppet-enterprise-installer -a /root/answers -D  >& /tmp/pe-install.txt",  "\n",
  +            "/root/",
  +            { "Fn::FindInMap" : [
  +              "ArchToPayloadDir",
  +               { "Fn::FindInMap" :
  +                    ["AWSInstanceType2Arch", { "Ref" : "MasterInstanceType" }, "Arch"] },
  +               "PayloadDir"]
  +            },
  +            "/puppet-enterprise-installer -a /root/answers -D  >& /tmp/pe-install.txt",  "\n",
               "echo '*' >> /etc/puppetlabs/puppet/autosign.conf", "\n",
               "mv /var/lib/cfn-init/data/external_node /etc/puppetlabs/puppet-dashboard/external_node", "\n",
               "chown -Rvf pe-puppet:pe-puppet /var/lib/cfn-init/data/cfn-credentials /etc/puppetlabs/puppet-dashboard/external_node /etc/puppetlabs/puppet/modules", "\n",
  
positive.code:       "Description": "Name of an existing EC2 KeyPair to enable SSH access to the instances",
        "Type": "String"
      },
      "PEId" : {
        "Description" : "ID",
        "Type" : "String",
        "Default" : "puppet-enterprise-2.0.0-el-6-i386"
      },
      "Payload" : {
        "Description" : "URL of PE installer payload",
        "Type" : "String",
        "Default" : "https://s3.amazonaws.com/pe-builds/released/2.0.0/puppet-enterprise-2.0.0-el-6-i386.tar.gz"
      },
      "MasterAnswersFile" : {
        "Description": "URL where master answers file can be downloaded from",
        "Type" : "String",
  
negative.code:     }
    },
    "Mappings" : {
      "ArchToPayload" : {
        "32" : {"Payload" : "https://s3.amazonaws.com/pe-builds/released/2.0.0/puppet-enterprise-2.0.0-el-6-i386.tar.gz"},
        "64" : {"Payload" : "https://s3.amazonaws.com/pe-builds/released/2.0.0/puppet-enterprise-2.0.0-el-6-x86_64.tar.gz"}
      },
      "ArchToPayloadDir" : {
        "32" : {"PayloadDir" : "puppet-enterprise-2.0.0-el-6-i386"},
        "64" : {"PayloadDir" : "puppet-enterprise-2.0.0-el-6-x86_64"}
      },
      "AWSInstanceType2Arch" : {
        "t1.micro"    : { "Arch" : "32" },
        "m1.small"    : { "Arch" : "32" },
  