Skip to content

Commit f518845

Browse files
AndHeijen20
authored andcommitted
aws_vpc_peering_connection ambiguous language
The documentation mentions ownership of both VPCs for aws_vpc_peering_connection auto_accept to work but if both VPC are in separate accounts it does not matter if both account are owned or not. In #6843 its stated that aws_vpc_peering_connection only works if both VPC are in the same AWS account. The documentation fails to mention that peeing of two VPCs in two different regions is not supported by AWS.
1 parent 6ad2b78 commit f518845

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

website/source/docs/providers/aws/r/vpc_peering.html.markdown

+4-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The following arguments are supported:
7575
Defaults to the account ID the [AWS provider][1] is currently connected to.
7676
* `peer_vpc_id` - (Required) The ID of the VPC with which you are creating the VPC Peering Connection.
7777
* `vpc_id` - (Required) The ID of the requester VPC.
78-
* `auto_accept` - (Optional) Accept the peering (you need to be the owner of both VPCs).
78+
* `auto_accept` - (Optional) Accept the peering (both VPCs need to be in the same AWS account).
7979
* `accepter` (Optional) - An optional configuration block that allows for [VPC Peering Connection]
8080
(http://docs.aws.amazon.com/AmazonVPC/latest/PeeringGuide) options to be set for the VPC that accepts
8181
the peering connection (a maximum of one).
@@ -110,7 +110,9 @@ The following attributes are exported:
110110

111111
## Notes
112112

113-
If you are not the owner of both VPCs, or do not enable the `auto_accept` attribute you will still
113+
AWS only supports VPC peering within the same AWS region.
114+
115+
If both VPCs are not in the same AWS account do not enable the `auto_accept` attribute. You will still
114116
have to accept the VPC Peering Connection request manually using the AWS Management Console, AWS CLI,
115117
through SDKs, etc.
116118

0 commit comments

Comments
 (0)