-
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
Cross-account (and cross-region) VPC Peering Accepter Error: vpc_peering_connection_id not found #7178
Comments
@ewbankkit sorry for late reply. Is sending via Keybase an option? I've used to do it via official Hashicorp key when dealing with different issue. Output is pretty long and there is too many things to redact for me. |
@ewbankkit @bflad encrypted with Hashicorp's Keybase: This is a DEBUG output of running Hope this helps. |
I'm experiencing similar issues, has this been looked into? |
@gio-salvador @rmldsky Have you tried setting the |
@ewbankkit I've just tried running
... and it WORKED! :) Thanks for pointing me towards this! 🍺 Though it is not the same error and the same case as the original issue (cross-account AND cross region). Whenever I have a chance I'd test it as well. |
@rmldsky No problem. I only just learned of that environment variable recently myself 😄. |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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. |
Community Note
Terraform Version
Terraform v0.11.8
provider.aws v1.54.0
Affected Resource(s)
aws_vpc_peering_connection
aws_vpc_peering_connection_accepter
Terraform Configuration Files
Expected Behavior
On both account peering connections should be created and on accepter account it should've been approved (activated)
Actual Behavior
Both resources are created on both accounts. Accepter side doesn't approve the connection and TF throws error:
When I accept it on accepter's side (account) and run
terraform plan
again, it still wants to createaws_vpc_peering_connection_accepter
resource.pcx-XXXXXXXXX
beingvpc_peering_connection_id: "" => "pcx-XXXXXXXXX"
and it does exists on requester side (was created).Does not matter if I set
auto_accept
on accepter totrue
orfalse
. It looks like accepter's side is not looking for this connection id on the requester account?Should I be doing something differently? Am I getting documentation wrong?
The text was updated successfully, but these errors were encountered: