-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_vpc_peering_connection_accepter: vpc_id and peer_vpc_id not set correctly for same-account peerings #7703
Comments
Hi @ewbankkit! Thanks for noting this. Can you attach a config that demonstrates the problem, so someone could work on it? |
@aeschright We can use the resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
tags = {
Name = "test"
}
}
resource "aws_vpc" "peer" {
cidr_block = "10.1.0.0/16"
tags = {
Name = "test"
}
}
// Requester's side of the connection.
resource "aws_vpc_peering_connection" "main" {
vpc_id = "${aws_vpc.main.id}"
peer_vpc_id = "${aws_vpc.peer.id}"
auto_accept = false
tags = {
Name = "test"
}
}
// Accepter's side of the connection.
resource "aws_vpc_peering_connection_accepter" "peer" {
vpc_peering_connection_id = "${aws_vpc_peering_connection.main.id}"
auto_accept = true
tags = {
Name = "test"
}
} |
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
Discovered while testing #7627.
For same-account VPC peering connections the
aws_vpc_peering_connection_accepter
resource is not correctly setting thevpc_id
andpeer_vpc_id
attributes.The text was updated successfully, but these errors were encountered: