Terraform AWS VPC Peering Connection Not Establishing with 'Pending Acceptance' State
Quick question that's been bugging me - I'm refactoring my project and I'm trying to set up a VPC peering connection between two AWS accounts using Terraform, but the connection remains in a 'Pending Acceptance' state indefinitely... I have configured the VPCs in both accounts, and I believe my Terraform code is correct. Here's what I've done so far: First, I have defined the VPC peering resource in my main Terraform file: ```hcl resource "aws_vpc_peering_connection" "example" { provider = aws.other_account vpc_id = aws_vpc.my_vpc.id peer_vpc_id = aws_vpc.peer_vpc.id auto_accept = false } ``` In the account where I created the peering connection, I also have the following code to accept the peering request: ```hcl resource "aws_vpc_peering_connection_accepter" "example" { provider = aws.my_account vpc_peering_connection_id = aws_vpc_peering_connection.example.id } ``` I've confirmed the VPC IDs are correct and that both VPCs are in the same region. Additionally, I have the AWS credentials properly set up for both accounts. However, when I run `terraform apply`, I see the peering connection gets created, but the status remains 'Pending Acceptance'. I tried manually accepting the peering connection in the AWS console, but it still shows the same status. I also checked the IAM permissions and ensured that both accounts have the necessary permissions for VPC peering. I've tried running `terraform apply` multiple times, but the state doesn't change. Is there something I might be missing in the configuration? Could it be related to the networking setup, or are there specific IAM permissions I need to verify? Any insights would be appreciated! I'm working on a microservice that needs to handle this. Thanks for your help in advance! I'm using Hcl stable in this project. Thanks for taking the time to read this!