<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 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 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">
<br></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>Thanks,</div><div>Simon</div></div></div>