Skip to content

fix(docdb): fix serverless cluster setup#37087

Open
dimmy-timmy wants to merge 4 commits intoaws:mainfrom
dimmy-timmy:fix-serverless-cluster
Open

fix(docdb): fix serverless cluster setup#37087
dimmy-timmy wants to merge 4 commits intoaws:mainfrom
dimmy-timmy:fix-serverless-cluster

Conversation

@dimmy-timmy
Copy link
Copy Markdown

Issue #37011

Closes #37011

Reason for this change

Current serverless configuration creates cluster without instances at all which makes cluster unusable.

Description of changes

Adds serverless instances provisioning support for docdb cluster via separate serverlessInstances property.
Allows to create mixed cluster with both serverless and provisioned instances closes - useful for real production use to simplify transition.
Added new validations - to make sure cluster is created with at least serverlessInstances or instances set greater > 0.
Added new validations - to make sure that serverlessV2ScalingConfiguration is presented when serverlessInstances > 0.

Description of how you validated changes

Added new and updated existing unit and integration tests which verify:

  • serverless cluster created with instances
  • that it is possible to create mixed instances cluster
  • that current default behaviour is maintained and cluster created with just provisioned instance when no serverless settings provided

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

dimmy-timmy and others added 2 commits February 25, 2026 14:27
closes aws#37011
Adds serverless instances provisioning support for docdb cluster via separate serverlessInstances property.
Allows to create mixed cluster with both serverless and provisioned instances closes - useful for real production use to simplify transition.
Added new validations - to make sure cluster is created with at least serverlessInstances or instances set greater > 0.
Added new validations - to make sure that serverlessV2ScalingConfiguration is presented when serverlessInstances > 0.
@aws-cdk-automation aws-cdk-automation requested a review from a team February 25, 2026 13:39
@github-actions github-actions Bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/medium Medium work item – several days of effort p2 labels Feb 25, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 25, 2026

⚠️ Experimental Feature: This security report is currently in experimental phase. Results may include false positives and the rules are being actively refined.
Please try merge from main to avoid findings unrelated to the PR.


TestsPassed ✅SkippedFailed
Security Guardian Results72 ran72 passed
TestResult
No test annotations available

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 25, 2026

⚠️ Experimental Feature: This security report is currently in experimental phase. Results may include false positives and the rules are being actively refined.
Please try merge from main to avoid findings unrelated to the PR.


TestsPassed ✅SkippedFailed
Security Guardian Results with resolved templates72 ran72 passed
TestResult
No test annotations available

@dimmy-timmy
Copy link
Copy Markdown
Author

Issue #37011 was closed by mistake. Looks like there was some CI issue .
PR was merged with 0 changes (i assume my repo was ovewritten)

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Feb 25, 2026
@dimmy-timmy
Copy link
Copy Markdown
Author

@pahud Could you please take a look
I believe #37050 was closed by mistake due to CI issues
and my fork was overwritten

* main: (27 commits)
  chore(deps): bump dawidd6/action-download-artifact from 15 to 16 (aws#37136)
  chore: add enum updater lerna.json (aws#36755)
  chore(docdb): upgrade integ tests to engine 8.0.0 and add serverless region constraints (aws#37059)
  chore(github): add `environment: automation` to workflow jobs and fix formatting (aws#37140)
  chore(deps): bump actions/upload-artifact from 6 to 7 (aws#37138)
  chore(deps): bump actions/download-artifact from 7 to 8 (aws#37137)
  chore(spec2cdk): handle undefined properties in the reference interfaces (aws#37040)
  chore: update Contributors File (aws#37129)
  chore(cloudformation-include): remove hardcoded S3 bucket names from integ test templates (aws#37069)
  Update CHANGELOG.v2.md
  chore: update analytics metadata blueprints
  chore(release): 2.241.0
  fix: bump minimatch to ^10.2.3 to resolve ReDoS vulnerabilities (aws#37127)
  feat: update L1 CloudFormation resource definitions (aws#37103)
  chore(msk-alpha): fix integ tests - update deprecated Kafka versions (aws#37084)
  docs(s3): fix addEventNotification docstring examples for correct Rosetta translation (aws#37104)
  fix(events): correct docs on schema discovery and CMK encryption (aws#37102)
  feat(core): introducing CDK Mixins (aws#37055)
  chore(mixins-preview): enum name must be a valid typescript identifier (aws#37099)
  chore: bump @aws-cdk/asset-node-proxy-agent-v6 to ^2.1.1 (aws#37098)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/medium Medium work item – several days of effort p2 pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aws-docdb: serverless cluster created without instances

2 participants