AWS CloudFormation 模板用於在兩個現有運行 VPC 之間創建 VPC 對等連接,每個 VPC 都屬於不同的 AWS 賬戶。遠程"(接收)賬戶中的所有必要組件都已就位。下面的模板在發端賬戶中創建了 VPC 對等連接。它包含這些組件:AWSTemplateFormation 版本:2010-09-09 參數:發端 VCId:類型:字符串 RemoteVPCId:類型: 字符串字符串 RemoteVPCAccountId:類型: 字符串字符串 資源: n
A. esources:NewEC2SecurityGroup:Type:AWS::EC2::SecurityGroup
B. esources:NetworkInterfaceToRemoteVPC:Type:"AWS::EC2NetworkInterface"(AWS::EC2NetworkInterface
C. esources:newEC2Route:Type:AWS::EC2::Route
D. esources:VPCGatewayToRemoteVPC:Type:"AWS::EC2::VPCGatewayAttachment" (AWS::EC2::VPCGatewayAttachment
E. esources:newVPCPeeringConnection:Type:'AWS::EC2VPCPeeringConnection'PeerRoleArn: !Ref PeerRoleArn