aws::vpc-peering-connection

Create a Peering Connection between two VPC.

Example

aws::vpc-peering-connection peering-connection-example
    vpc: $(aws::vpc vpc-example-for-peering-connection-1)
    peer-vpc: $(aws::vpc vpc-example-for-peering-connection-2)

    tags: {
        Name: "peering-connection-example"
    }
end

Attributes

Attribute Description
vpc The requester VPC. See Creating and Accepting Peering Connection. (Required)
peer-vpc The accepter VPC. (Required)
allow-dns-resolution-from-remote-vpc When set to true, enables a local VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC. Defaults to false.
allow-egress-from-local-classic-link-to-remote-vpc When set to true, enables outbound communication from an EC2-Classic instance that’s linked to a local VPC using ClassicLink to instances in a peer VPC. Defaults to false.
allow-egress-from-local-vpc-to-remote-classic-link When set to true, enables outbound communication from instances in a local VPC to an EC2-Classic instance that’s linked to a peer VPC using ClassicLink. Defaults to false.
peer-allow-dns-resolution-from-remote-vpc When set to true, enables a local VPC to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC. Defaults to false.
peer-allow-egress-from-local-classic-link-to-remote-vpc When set to true, enables outbound communication from an EC2-Classic instance that’s linked to a local VPC using ClassicLink to instances in a peer VPC. Defaults to false.
peer-allow-egress-from-local-vpc-to-remote-classic-link When set to true, enables outbound communication from instances in a local VPC to an EC2-Classic instance that’s linked to a peer VPC using ClassicLink. Defaults to false.

Outputs

Attribute Description
id The ID of the Peering Connection.