-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
AWS Cross Account VPC Peering issue #20473
Comments
Hi @linuxwalabhushan ! I'm sorry that you've come across this error, but I'm not sure what you are asking us for here. You've already identified the problem, which is that the second cross account does not have permission to accept the peering connection. That's something you (or the owner of the account) needs to fix. |
Hi @linuxwalabhushan to accept a cross-account VPC peering you will need to use the |
I got the same issue:
But the user should have been X instead of Y. The Y user is the account that is running the script, and not the account that is supposed to be loaded through the referred provider. |
Hi all, It seems like this is a question about the AWS provider, rather than a bug or feature request in Terraform Core. The AWS provider forum could be a good place to raise this topic. If this is actually a bug report, feel free to open an issue in the AWS provider repository and complete the issue template so the provider team can understand better what is going on here. Thanks! |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
i have tried to create a new vpc peering in between two aws cross accounts. i have faced some issue which have pasted below
Error: Error applying plan:
1 error(s) occurred:
module.multi-account-peering.aws_vpc_peering_connection.this: 1 error(s) occurred:
aws_vpc_peering_connection.this: Unable to accept VPC Peering Connection: OperationNotPermitted: User 264086180894 cannot accept peering pcx-0e868786683ea89a6
status code: 400, request id: 93673723-4851-40ed-98ce-07a0ac4ea0c8
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
as per my findings, above issue occurred when second cross account does not have permission to accept the peering connection.
please go through at above issue.
The text was updated successfully, but these errors were encountered: