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

Add VPCe for all aws services #1010

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

AndreKurait
Copy link
Member

@AndreKurait AndreKurait commented Sep 24, 2024

Description

Remove public communication from migration assistant services by removing VPC and declaring VPCe's for all services.

  • Category: Enhancement
  • Why these changes are required? Cost and Security requirements
  • What is the old behavior before changes and new behavior after changes? Communication went through nat gateway

Issues Resolved

https://opensearch.atlassian.net/browse/MIGRATIONS-1969

Is this a backport? If so, please add backport PR # and/or commits #

Testing

Deployed and ran migration console commands in us-east-1 and us-gov-west-1

Check List

  • New functionality includes testing
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.16%. Comparing base (2107ccb) to head (a22728a).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1010   +/-   ##
=========================================
  Coverage     80.16%   80.16%           
  Complexity     2720     2720           
=========================================
  Files           370      370           
  Lines         13624    13624           
  Branches        938      938           
=========================================
  Hits          10922    10922           
  Misses         2131     2131           
  Partials        571      571           
Flag Coverage Δ
gradle-test 78.17% <ø> (ø)
python-test 89.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AndreKurait AndreKurait force-pushed the VPCConnectivity branch 2 times, most recently from d90fa13 to f7b89e1 Compare September 24, 2024 18:10
Signed-off-by: Andre Kurait <[email protected]>
@@ -126,7 +166,10 @@ export class NetworkStack extends Stack {
cidrMask: 24,
},
],
natGateways: 0,
Copy link
Collaborator

Choose a reason for hiding this comment

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

What subnets get created with this? Previously was 2 public and 2 private. Would this now be only 2 isolated subnets?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I also expected this to be more of a breaking change but the Jenkins job passed...

Copy link
Member Author

Choose a reason for hiding this comment

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

We still have 2 private and 2 public. The public are attached to an Internet Gateway that allows outside communication. The private do not have a NAT gateway so they are isolated within the VPC aside from the VPC Endpoints that connect into it

Copy link
Collaborator

@lewijacn lewijacn Sep 25, 2024

Choose a reason for hiding this comment

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

Ah I see, and wouldn't expect our Jenkins job to be affected since the elasticsearch ec2 CDK is creating the VPC

@AndreKurait AndreKurait merged commit cf8a174 into opensearch-project:main Sep 25, 2024
14 checks passed
@AndreKurait AndreKurait deleted the VPCConnectivity branch September 25, 2024 18:50
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.

2 participants