feat(neptune-alpha): support for Neptune serverless#26445
feat(neptune-alpha): support for Neptune serverless#26445mergify[bot] merged 5 commits intoaws:mainfrom
Conversation
jumic
left a comment
There was a problem hiding this comment.
From my perspective (as a community reviewer) this looks good. Thanks.
kaizencc
left a comment
There was a problem hiding this comment.
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.
| 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.
| 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})`); |
kaizencc
left a comment
There was a problem hiding this comment.
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