-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add peer_region to vpc peering connection #2508
Conversation
|
Should I do it as part of this PR, or separate it? |
Seems like a pretty small change so I'd say do it as part of this PR. |
fe9c182
to
e22285d
Compare
rebased and found an issue (not exactly sure why the test before didn't pick this up).
may be a timeout issue? |
Found a couple of issues and would like some input for the below errors:
when attempting to call accept
|
baa9d45
to
e9152f1
Compare
TF_ACC=1 go test ./aws -v -run=TestAccAWSVPCPeeringConnection -timeout 120m ~/D/k/r/g/s/g/t/terraform-provider-aws inter-region-vpc-peer
=== RUN TestAccAWSVPCPeeringConnection_importBasic
--- PASS: TestAccAWSVPCPeeringConnection_importBasic (25.47s)
=== RUN TestAccAWSVPCPeeringConnectionAccepter_sameRegion
--- PASS: TestAccAWSVPCPeeringConnectionAccepter_sameRegion (25.34s)
=== RUN TestAccAWSVPCPeeringConnectionAccepter_differentRegion
--- PASS: TestAccAWSVPCPeeringConnectionAccepter_differentRegion (31.64s)
=== RUN TestAccAWSVPCPeeringConnection_basic
--- PASS: TestAccAWSVPCPeeringConnection_basic (23.71s)
=== RUN TestAccAWSVPCPeeringConnection_plan
--- PASS: TestAccAWSVPCPeeringConnection_plan (22.57s)
=== RUN TestAccAWSVPCPeeringConnection_tags
--- PASS: TestAccAWSVPCPeeringConnection_tags (25.69s)
=== RUN TestAccAWSVPCPeeringConnection_options
--- PASS: TestAccAWSVPCPeeringConnection_options (40.32s)
=== RUN TestAccAWSVPCPeeringConnection_failedState
--- PASS: TestAccAWSVPCPeeringConnection_failedState (15.18s)
=== RUN TestAccAWSVPCPeeringConnection_peerRegionAndAutoAccept
--- PASS: TestAccAWSVPCPeeringConnection_peerRegionAndAutoAccept (12.69s)
=== RUN TestAccAWSVPCPeeringConnection_region
--- PASS: TestAccAWSVPCPeeringConnection_region (26.77s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 249.420s |
Is this going to make it in soon? Or is there documentation somewhere on how/when PRs get merged by Hashicorp? |
Is there an update on this issue? Any idea when it's going to be merged? |
if _, ok := d.GetOk("auto_accept"); ok { | ||
return fmt.Errorf("peer_region cannot be set whilst auto_accept is true when creating a vpc peering connection") | ||
} | ||
createOpts.SetPeerRegion(v.(string)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The convention has been to address the structure's field directly, i.e.
createOpts.PeerRegion = aws.String(v.(string))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ewbankkit Missed that, thanks!
About to push the change up, should I rebase and recomment the test results as well?
Any updates on when this will be merged? Thanks! |
@ewbankkit how is this PR looking? Is this ready to be merged? |
I have no further comments but it is not my call to make. |
@radeksimko You seem to be the one doing some of the most recent merges in PRs. Can you please provide some insight into how PRs are merged and when? It would help us understand the process so we don't seem so noisy or bothersome :) |
This looks good to me, and the tests pass. There are a few minor things which I will fix up in a supplementary commit locally before merging. However, it turns out that the resources for the acceptor are misspelled accepter - we should address that before the next release by adding aliases for the correct naming, and leave the current one for backward compatibility. |
This has been released in terraform-provider-aws version 1.7.0. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
The previous phrase "AWS only supports VPC peering within the same AWS region." existed in the documentation, it's no longer accurate since hashicorp#2508 opened up multi-regional peering capabilities and was merged and released in provider version 1.7.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
#2484