Skip to content

feat(teo): add tencentcloud_teo_plan_for_zone resource to purchase a plan for a zone via CreatePlanForZone API#4321

Open
iac-agent wants to merge 1 commit into
masterfrom
feat/add-teo-plan-for-zone
Open

feat(teo): add tencentcloud_teo_plan_for_zone resource to purchase a plan for a zone via CreatePlanForZone API#4321
iac-agent wants to merge 1 commit into
masterfrom
feat/add-teo-plan-for-zone

Conversation

@iac-agent

Copy link
Copy Markdown
Collaborator

Summary

This PR adds a new operation-type (one-time action) resource tencentcloud_teo_plan_for_zone for the EdgeOne (TEO) product, which purchases a plan for a zone that has no bound plan via the CreatePlanForZone API.

Changes

  • New resource: tencentcloud_teo_plan_for_zone (operation-type, one-time action)
    • Schema: required ForceNew zone_id and plan_type; computed resource_names and deal_names
    • Create calls CreatePlanForZone with retry; Read and Delete are no-ops
    • Unique ID auto-generated via helper.BuildToken()
  • Service layer: Added TeoPlanForZone method in service_tencentcloud_teo.go
  • Provider registration: Registered resource in provider.go and provider.md
  • Documentation: Added resource example doc (generated website doc via make doc in finalize step)
  • Unit test: Added gomonkey-based unit test covering the Create lifecycle
  • OpenSpec proposal: Archived change proposal and spec under openspec/

Motivation

EdgeOne zones that have not yet purchased a plan cannot be fully managed via Terraform. This resource lets users purchase a plan for a zone entirely from infrastructure-as-code.

@iac-agent
iac-agent force-pushed the feat/add-teo-plan-for-zone branch from 893aea1 to 8780084 Compare July 20, 2026 08:03
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.

1 participant