-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(opensearchservice): IM4GN instances don't support EBS #27765
Conversation
if (isSomeInstanceType('i3', 'r6gd') && ebsEnabled) { | ||
throw new Error('I3 and R6GD instance types do not support EBS storage volumes.'); | ||
if (isSomeInstanceType('r3', 'i3', 'r6gd', 'im4gn') && ebsEnabled) { | ||
throw new Error('R3, I3, R6GD and IM4GN instance types do not support EBS storage volumes.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this if
was missing r3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs linked above say that r3
is incompatible with encryption at rest but is silent about EBS specifically. Are the service docs missing that fact, is there another source for that limitation? https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that doc is missing it? On the pricing page, it doesn't have EBS and is similar to i3
, r6gd
, and im4gn
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kylelaker Let me fix this. I tested in the Console and you are allowed to have EBS for R3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kylelaker Thanks for catching this! I confirmed r3
supports both instance and EBS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
Exemption Request: I don't think integration test changes are needed for these logic checks but happy to add them if needed. |
Exemption Request: I don't think integration test changes are needed for these logic checks but happy to add them if needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into the R3 instances more! This looks good for adding the IM4GN support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good addition. Thanks!
I do not think we need the integ test in this case. I do not see instance type checks in any of our integ tests. The unit test should be sufficient.
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Relevant docs https://aws.amazon.com/opensearch-service/pricing/
Closes #27757.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license