Skip to content

Commit

Permalink
Merge pull request #3009 from uktrade/feat/auto-accept-internal-vpc-p…
Browse files Browse the repository at this point in the history
…airings

feat: auto accept internal VPC pairings
  • Loading branch information
michalc authored Feb 8, 2024
2 parents 9d28c14 + 26902f8 commit 8c43235
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ resource "aws_flow_log" "datasets" {
resource "aws_vpc_peering_connection" "datasets_to_paas" {
peer_vpc_id = "${var.paas_vpc_id}"
vpc_id = "${aws_vpc.datasets.id}"
auto_accept = true

accepter {
allow_remote_vpc_dns_resolution = false
Expand All @@ -337,6 +338,7 @@ resource "aws_vpc_peering_connection" "datasets_to_paas" {
resource "aws_vpc_peering_connection" "datasets_to_main" {
peer_vpc_id = "${aws_vpc.datasets.id}"
vpc_id = "${aws_vpc.main.id}"
auto_accept = true

accepter {
allow_remote_vpc_dns_resolution = false
Expand All @@ -354,6 +356,7 @@ resource "aws_vpc_peering_connection" "datasets_to_main" {
resource "aws_vpc_peering_connection" "datasets_to_notebooks" {
peer_vpc_id = "${aws_vpc.datasets.id}"
vpc_id = "${aws_vpc.notebooks.id}"
auto_accept = true

accepter {
allow_remote_vpc_dns_resolution = false
Expand Down

0 comments on commit 8c43235

Please sign in to comment.