Skip to content

feat(mongodb): [135210336]add cpu parameter to tencentcloud_mongodb_instance resource#4325

Open
iac-agent wants to merge 3 commits into
masterfrom
feat/add-mongodb-instance-cpu-param
Open

feat(mongodb): [135210336]add cpu parameter to tencentcloud_mongodb_instance resource#4325
iac-agent wants to merge 3 commits into
masterfrom
feat/add-mongodb-instance-cpu-param

Conversation

@iac-agent

Copy link
Copy Markdown
Collaborator

Add a new optional cpu parameter to the tencentcloud_mongodb_instance resource to allow managing the CPU core count of a MongoDB instance during configuration changes.

Changes:

  • Add cpu (TypeInt, Optional + Computed) field to the resource schema.
  • Trigger ModifyDBInstanceSpec on cpu change in Update and map params["cpu"] to ModifyDBInstanceSpecRequest.Cpu.
  • Backfill cpu from DescribeDBInstances InstanceDetail.CpuNum in Read.
  • Add gomonkey-based unit tests covering update trigger, read backfill, and nil handling.
  • Update resource documentation.

@iac-agent
iac-agent force-pushed the feat/add-mongodb-instance-cpu-param branch from 7748643 to 734d02f Compare July 21, 2026 08:54
@gitmkn gitmkn changed the title feat(mongodb): add cpu parameter to tencentcloud_mongodb_instance resource feat(mongodb): [135210336]add cpu parameter to tencentcloud_mongodb_instance resource Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants