title: Environment Variable is not getting created in the Given Path
body: <p>I used the below mentioned Script in Userdata Section of the Cloudformation template to Set the Environment Variable but Environment Variable is not getting created and No content in setenv file</p>
  
  <pre><code>"echo 'export ec2userdata='variable &gt; /root/setenv\n",
  {
  "Fn::Join" :
     ["",
        [ "echo 'export environment'=",
          {"Ref" : "EnvironUsed"},
            " &gt;&gt;/root/setenv\n"]]
   },
  </code></pre>
  
  <p>in the file /root/setenv the environment Variables has to be stored, Which will be later used by other scripts</p>