-
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
feat(neptune-alpha): support for Neptune serverless #26445
Conversation
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.
From my perspective (as a community reviewer) this looks good. Thanks.
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 @lpizzinidev and @jumic! My only comment is that wherever possible, I'd like to return the actual values received in the error messages
throw new Error('ServerlessScalingConfiguration minCapacity must be greater or equal than 1'); | ||
} | ||
if (serverlessScalingConfiguration.maxCapacity < 2.5 || serverlessScalingConfiguration.maxCapacity > 128) { | ||
throw new Error('ServerlessScalingConfiguration maxCapacity must be between 2.5 and 128'); |
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.
throw new Error('ServerlessScalingConfiguration maxCapacity must be between 2.5 and 128'); | |
throw new Error(`ServerlessScalingConfiguration maxCapacity must be between 2.5 and 128, received ${serverlessScalingConfiguration.maxCapacity}`); |
throw new Error('ServerlessScalingConfiguration maxCapacity must be between 2.5 and 128'); | ||
} | ||
if (serverlessScalingConfiguration.minCapacity >= serverlessScalingConfiguration.maxCapacity) { | ||
throw new Error('ServerlessScalingConfiguration minCapacity must be less than serverlessScalingConfiguration maxCapacity'); |
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.
throw new Error('ServerlessScalingConfiguration minCapacity must be less than serverlessScalingConfiguration maxCapacity'); | |
throw new Error(`ServerlessScalingConfiguration minCapacity (${serverlessScalingConfiguration.minCapacity)}) must be less than serverlessScalingConfiguration maxCapacity (${serverlessScalingConfiguration.maxCapacity})`); |
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! This got in extremely smoothly :).
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). |
Adds support for [Neptune serverless](https://docs.aws.amazon.com/neptune/latest/userguide/neptune-serverless-using.html). Example of how to launch a Neptune serverless cluster: ``` new DatabaseCluster(stack, 'Database', { vpc, instanceType: InstanceType.SERVERLESS, clusterParameterGroup, removalPolicy: cdk.RemovalPolicy.DESTROY, serverlessScalingConfiguration: { minCapacity: 1, maxCapacity: 5, }, }); ``` Closes aws#26428 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Adds support for Neptune serverless.
Example of how to launch a Neptune serverless cluster:
Closes #26428
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license