Skip to content
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

feat(terraform): IRN VPC Peering #682

Merged
merged 4 commits into from
Jun 24, 2024
Merged

feat(terraform): IRN VPC Peering #682

merged 4 commits into from
Jun 24, 2024

Conversation

xDarksome
Copy link
Contributor

Description

Adds VPC peering to the IRN VPC

How Has This Been Tested?

Manually

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@xDarksome xDarksome self-assigned this Jun 21, 2024
@@ -38,6 +38,22 @@ module "vpc" {
vpc_flow_log_tags = module.this.tags
}

resource "aws_vpc_peering_connection" "irn" {
count = var.irn_vpc_id != null ? 1 : 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be required not optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know, I made it optional for relay, because it may not be needed for all envs.
@geekbrother do we need it always here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know, I made it optional for relay, because it may not be needed for all envs. @geekbrother do we need it always here?

Since sessions will be a part of the blockchain-api and no plans to run it in a cloud without it, I believe we can make this required.

Copy link
Member

@chris13524 chris13524 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the CIDR ranges of the Blockchain API and IRN VPCs? Just curious how this fits together

@xDarksome
Copy link
Contributor Author

xDarksome commented Jun 24, 2024

What are the CIDR ranges of the Blockchain API and IRN VPCs? Just curious how this fits together

Fortunately, fits fine. 10.0.0.0 here, 10.2.0.0 in relay

Copy link
Contributor

@geekbrother geekbrother left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good to me. Can't test this now, but adding the test to connect to the IRN to #681 so we will be sure that works.

@xDarksome xDarksome marked this pull request as ready for review June 24, 2024 10:48
@xDarksome xDarksome merged commit 85fe272 into master Jun 24, 2024
11 checks passed
@xDarksome xDarksome deleted the feat/irn-vpc-peering branch June 24, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants