The template below creates the VPC peering connection in the Originating account. It contains these components:
AWSTemplateFormatVersion: 2010-09-09
Parameters:
Originating vpcid:
Type: String
RemoteVPCId:
Type: String
RemoteVPCAccountId:
Type: String
Resources:
newVPCPeeringConnection:
Type: AWS::EC2::VPCPeeringConnection
Properties:
Vpcld:!Ref Originatingvpcid
PeerVpcid:!Ref RemoteVPCId
PeerOwnerId: !Ref RemoteVPCAccountId
Which additional AWS CloudFormation components are necessary in the Originating account to create an operational cross-account VPC peering connection with AWS CloudFormation? (Choose two.)
A.
Resources:
NewEC2SecurityGroup:
Type: AWS::EC2::SecurityGroup
B.
Resources
Network Inter faceToRemotevpc
Type: AWS::EC2::NetworkInterface
C.
Resources:
newEC2Rout
Type: AWS::EC2::Route
D.
Resources:
VPCGatewayToRemoteVPC
Type: AWS::EC2::VPCGatewayAttachment
E.
Resources:
newVPCPeer ingComnection:
Type: AWS::EC2::VPCPeeringConnection
PeerRoleArn:!Ref PeerRoleArn