title: Where is UserData script placed in a Windows EC2 instance?
body: <p>Is the UserData part stored anywhere on a Windows EC2 machine? I need to examine it to see that input variables are correct. </p>
  
  <p>On Ubuntu, it's supposed to be stored at <code>/var/lib/cloud/instances/[instance-id]/user-data.txt</code> according to <a href="http://blog.hownowstephen.com/post/45268048932/where-is-ec2-user-data-stored" rel="nofollow noreferrer">this link</a>.</p>
  
  <p>The user data section in CloudFormation looks like this:</p>
  
  <pre><code>"UserData"         : {
      "Fn::Base64" : {
          "Fn::Join" : [
              "",
              [
                  "&lt;script&gt;\n",
                  "seedtool.exe ", { "Fn::GetAtt" : [ "DatabaseCluster" , "Endpoint.Address" ] }, "\n",
                  "&lt;/script&gt;\n"
              ]
          ]
      }
  },
  </code></pre>
  
  <p>I need to see the user-data.txt so I can see what <code>{ "Fn::GetAtt" : [ "DatabaseCluster" , "Endpoint.Address" ] }</code> resolves to.</p>