chore(opensearchservice): add support for R8GD instance types #36059
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Closes #36056
Summary
Adds support for R8GD (Graviton4-based) instance types in OpenSearch Service domains by updating validation logic to recognize R8GD instances as having local NVMe storage, eliminating the requirement for EBS volumes.
Reason for this change
When attempting to create an OpenSearch domain with R8GD instance types (e.g.,
r8gd.medium.search), CDK throws a validation error requiring EBS volumes. However, R8GD instances have local NVMe storage (indicated by the "d" suffix) and should not require EBS volumes, similar to other instance families like R6GD, R7GD, I3, I4G, I4I, I8G, and IM4GN.AWS announced R8GD instance availability for OpenSearch Service in October 2025 across 23 regions, but CDK's validation logic was not updated to recognize these new Graviton4-based instances.
Description of changes
ec2.InstanceClass.R8GDto theunSupportEbsInstanceTypearray indomain.tsinteg.opensearch.ebs.tsfor CloudFormation synthesis validationFiles Modified
packages/aws-cdk-lib/aws-opensearchservice/lib/domain.ts- Added R8GD to validation arraypackages/aws-cdk-lib/aws-opensearchservice/test/domain.test.ts- Updated unit tests with R8GD casespackages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ebs.ts- Added integration testDescription of how you validated changes
Checklist
AWS CDK Automation
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license