<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 04/03/2013 08:29 PM, Simon Pasquier
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPrrXecFbwz8170Yr5A=gxhk6gfjLCc-3wTAYHB0riM_jBjZpw@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span
          style="font-family:arial,sans-serif;font-size:13px">Hi,</span>
        <div style="font-family:arial,sans-serif;font-size:13px"><br>
          <div>Let say I have a first template to create a VPC network
            and another one to create a subnet associated to that VPC.</div>
          <div><br>
          </div>
          <div>
            <div>First template:</div>
            <div>{</div>
            <div>   "AWSTemplateFormatVersion" : "2010-09-09",</div>
            <div>   "Resources" : {</div>
            <div>      "myVPC" : {</div>
            <div>         "Type" : "AWS::EC2::VPC",</div>
            <div>         "Properties" : {</div>
            <div>            "CidrBlock" : "<a moz-do-not-send="true"
                href="http://20.0.0.0/16" target="_blank">20.0.0.0/16</a>"</div>
            <div>         }</div>
            <div>      }</div>
            <div>   },</div>
            <div>
                 "Outputs" : {</div>
            <div>    "VpcID" : {</div>
            <div>      "Value" : { "Ref" : "myVPC" },</div>
            <div>      "Description" : "Reference of the myVPC"</div>
            <div>    } </div>
            <div>   }</div>
            <div>}</div>
            <div><br>
            </div>
            <div>Second template:</div>
            <div>{</div>
            <div>   "AWSTemplateFormatVersion" : "2010-09-09",</div>
            <div> </div>
            <div>   "Parameters" : {</div>
            <div>    "VpcId" : {</div>
            <div>      "Type" : "String",</div>
            <div>      "Description" : "VpcId of your existing Virtual
              Private Cloud (VPC)"</div>
            <div>    }</div>
            <div>   },</div>
            <div> </div>
            <div>   "Resources" : {</div>
            <div>    "mySubnet" : {</div>
            <div>         "Type" : "AWS::EC2::Subnet",</div>
            <div>         "Properties" : {</div>
            <div>            "VpcId" : { "Ref" : "VpcId" },</div>
            <div>            "CidrBlock" : "<a moz-do-not-send="true"
                href="http://20.0.0.0/24" target="_blank">20.0.0.0/24</a>",</div>
            <div>            "AvailabilityZone" : "us-east-1a"</div>
            <div>         }</div>
            <div>
                    }</div>
            <div>   },</div>
            <div>   "Outputs" : {</div>
            <div>    "SubnetId" : {</div>
            <div>      "Value" : { "Ref" : "mySubnet" },</div>
            <div>      "Description" : "Reference to mySubnet"</div>
            <div>    } </div>
            <div>   }</div>
            <div>}</div>
          </div>
          <div>
            <pre style="white-space:pre-wrap;line-height:16px;width:744px;font-size:12px;margin-bottom:0px;font-family:Consolas,'Liberation Mono',Courier,monospace;margin-top:0px;word-wrap:break-word;padding:0px">

</pre>
          </div>
          <div>I want to pass the VpcId value as a parameter to the
            second template but the stack creation fails. Looking at the
            code, this use case doesn't seem to be supported.</div>
          <div>Am I right? If yes, is it something planned for a future
            release?</div>
        </div>
      </div>
    </blockquote>
    What version of Heat are you running? There was actually a change
    released in grizzly-rc1 which addressed this issue:<br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a href="https://bugs.launchpad.net/heat/+bug/1142812">https://bugs.launchpad.net/heat/+bug/1142812</a><br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a href="https://review.openstack.org/#/c/23391/">https://review.openstack.org/#/c/23391/</a><br>
    <br>
    If this doesn't work for you could you raise a launchpad bug?<br>
    <br>
    cheers<br>
    <br>
  </body>
</html>