title: How to add security group in SecurityGroupIngress from other VPC in AWS cloud formation template?
body: <p>We have got multiple AWS accounts. While creating CFTemplate for Security group creation, i should add SG from other VPC as inbound rule. when i try the same code with "CidrIp", my stack is created without error but when i give SourceSecurityGroupId &amp; SourceSecurityGroupOwnerId, i'm getting error as given VPC doesnot exists. This is the code i used.</p>
  
  <pre><code>"Resources" : {
      "PrivateWindowsSg" : {
        "Type" : "AWS::EC2::SecurityGroup",
        "Properties" : {
           "GroupDescription" : "Ingress from AD &amp; DC in CS",
           "VpcId" : {
             "Ref" : "VPCID"
           }
        }
      },
      "PrivateWindowsSgIngress" : {
        "Type" : "AWS::EC2::SecurityGroupIngress",
        "Properties" :{
            "Description" : "Ingress from AD &amp; DC in CS",
            "GroupId" : {
              "Ref" : "PrivateWindowsSg"
            },
            "IpProtocol" : "UDP",
            "FromPort" : "49152",
            "ToPort" : "65535",
            "SourceSecurityGroupId" : "SG from Other VPC",
            "SourceSecurityGroupOwnerId" :"AWSAccountID"
            }
          }
        }
  </code></pre>
  
  <p>The error i'm getting everytime is "The security group 'sg-055f0xxxx' does not exist in default VPC 'none' (Service: AmazonEC2; Status Code: 400; Error Code: InvalidGroup.NotFound; Request ID: 056cc269-421d-4985-a15a-b672f20041c8)" .</p>
  
  <p>Does any one help resolving this issue?</p>